Blog信息 |
blog名称: 日志总数:1304 评论数量:2242 留言数量:5 访问次数:7579394 建立时间:2006年5月29日 |

| |
[Hibernate]Hibernate 3.2: Transformers for HQL and SQL 软件技术, 电脑与网络
lhwork 发表于 2006/6/12 9:50:00 |
People using the Criteria API have either transparently or knowingly used a ResultTransformer. A ResultTransformer is a nice and simple interface that allows you to transform any Criteria result element. E.g. you can make any Criteria result be returned as a java.util.Map or as a non-entity Bean.
Criteria Transformers
Imagine you have a StudentDTO |
|
[Hibernate]Generic DAO pattern with JDK 5.0 软件技术, 电脑与网络
lhwork 发表于 2006/6/12 9:48:41 |
One of the things in Hibernate in Action that needs serious improvement is the section about data access objects, the good old DAO pattern.
Things gone wrong
Some of the mistakes I've made in the first edition:
I assumed that DAO is not only a well known pattern, but that most people already had experience how to write state-oriented data access object interfaces. It turns out that most developers are very familiar with statement-oriented DA |
|
[J2ME]通过串口控制手机的简单程序 软件技术, 电脑与网络
lhwork 发表于 2006/6/8 17:48:08 |
Test.java
package steeven.mobile;
import javax.comm.*;
/** * <p>Title: steeven mobile</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2002</p> * <p>Company: konamish</p> * @author phpme@citiz.net * @version 1.0 * * Software requirement: * http://java.sun.com/products/javacomm (串口支持API) * Hardware requirement: * Moblie data line or IR interfa |
|
[Hibernate]解析Hibernate Validator (1) 软件技术, 电脑与网络
lhwork 发表于 2006/6/7 15:13:14 |
任何获得Matrix授权的网站,转载请保留以下作者信息和链接: 作者:icess(作者的blog:http://blog.matrix.org.cn/page/icess) 关键字:Hibernate Validator
在前一篇文章 < Hibernate Validator 简介 > http://www.matrix.org.cn/resource/article/44/44153_Hibernate%20Validator%20.html中,我 |
|
[Hibernate]Hibernate Validator 简介 软件技术, 电脑与网络
lhwork 发表于 2006/6/7 15:11:52 |
在项目的业务属性中,你是不是要经常验证属性的取值范围呢. 想要了解比较优美的解决方案吗?
看看Hibernate Validator 是怎么做的吧.一见到她,相信你就会说: Oh God, 这就是我需要的.
任何获得Matrix授权的网站,转载请保留以下作者信息和链接: 作者:icess(作者的blog:http://blog.matrix.org.cn/page/icess) 关键字:Hibernate Validator
用Annotations 给类或 |
|
|