@SuppressWarnings("unchecked")
public List getAll(final int pageNow, final int pageSize) {
final String hql = " from Mount ";
return getHibernateTemplate().executeFind(new HibernateCallback() {
public Object doInHibernate(Session s) throws HibernateException,
SQLException {
Query queryAll = s.createQuery(hql);
queryAll.setFirstResult(pageSize * pageNow);
queryAll.setMaxResults(pageSize);
return queryAll.list();
}
});
}