Hibernate使用Criteria条件查询
假设有帐号类User,账单类reckoning,需要查询账单交易在aaa-bbb之间的user列表
public list<User> getUser(double money){
Session session = .................. ; //得到Session
Transaction tran = session.beginTransaction();
list l =
session.createCriteria(User.class)
.add(Restrictions.gt())
.createCriteria(reckonings)
.add(Restrictions.between("