您的位置:首页 > 产品设计 > 产品经理

测试是否可以安装一个rpm包

2010-11-21 21:37 288 查看
Criteria in Hibernate has been there for a while, this morning it my first time to play with it. Great gain today. List a few key points to remember for all fellows.

 

1. Key to dynamic search. (of course can not solve all problem).

 

2. table join - Criterial#createAlias("property", "alias", JointType). you can do inner join, left join, full join.

 

3. Projections - another good one you must know, here is one example

Criteria criteria = getSession().createCriteria(Invoice.class).setProj ection(Projections.max("InvoiceDate"));

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐