一,在Ext中直接使用DWR 1,PoJO的Manager类为 复制代码 代码如下: public class CustomerManagerImpl extends HibernateDaoSupport implements CustomerManager { public PageModel allCustomers() { PageModel pageModel = new PageModel(); List datas = new ArrayList(); int total ;
String hql = "from Customer"; datas = this.getHibernateTemplate().find(hql); String countHql = "select count(*) from Customer"; total = ((Long)this.getSession().createQuery(countHql).uniqueResult()).intValue();