hibernate常用方法
hibernate获取个数
List list = (List)this.getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { return session.createQuery(hql).setTimestamp("expTime",date).list(); } });