Criteria查询
摘要:
1、Criteria表达式 Criteria c=session.createCriteria(User.class); List result=c.list(); Iterator it=result.iterator(); while(it.hasNext()){ User u=it.next(); System.out.println("用户名:"+u.getName()); } Criteria criteria = session.createCriteria(User.class); criteria.add(Restrictions.eq("name 阅读全文
posted @ 2013-07-09 18:48 悠然886 阅读(720) 评论(0) 推荐(0) 编辑