3 回答
慕粉3233872
TA贡献70条经验 获得超29个赞
@Override public List<Employee> findByPage(int begin, int pageSize) { DetachedCriteria criteria = DetachedCriteria.forClass(Employee.class); List<Employee> list = this.getHibernateTemplate().findByCriteria(criteria, begin, pageSize); return list; }
yanrun
TA贡献317条经验 获得超240个赞
List<Customer> list = session.createQuery("from Customer").setFirstResult(0).setMaxResults(10) .list();
添加回答
举报
0/150
提交
取消