Criterion Hibernate 条件查询

Criterion Hibernate 条件查询
List cat =sess.createCriteria(Cat.class).add(Restrictions.like("name","F%").addOrder(Order.asc("name")).addOrder(Order.desc("age")).setMaxResult(20).list();



大盘预测

你可能感兴趣的:(Criterion Hibernate 条件查询)