/**
* 分页查询数据
*/
public List getfind(final int start, final int maxCount, final String hql) {
return this.getHibernateTemplate().executeFind(new HibernateCallback() {
public Object doInHibernate(Session session)
throws HibernateException, SQLException {
return session.createQuery(hql).setFirstResult(start)
.setMaxResults(maxCount).list();
}
});
}