摘要:
1, a)使用hql语句直接查询整个model,取值时候需要向下转型: List list= session.createQuery("select s from Student s where s.name like ?").setParameter(0, "%"+param+"%").list(); for(Iterator it = list.iterator();it.hasNext();) { Student s = (Student)it.next();System.out.println(s.getName()); } 阅读全文
posted @ 2013-09-11 10:21
Little_cheeper
阅读(670)
评论(0)
推荐(0)

浙公网安备 33010602011771号