日期:2014-05-18 浏览次数:20638 次
@SuppressWarnings("unchecked")
public void testList() {
Session session = HibernateUtil.getSession();
Query query = session.createQuery("FROM Student");
List<Student> list = query.list();
List<Student> list1 = query.list();
HibernateUtil.closeSession();
}