摘要:
Session session = HibernateUtil.getSessionFactory().openSession(); Criteria criteria = session.createCriteria(People.class); //List list = criteria.list(); //select * from people //criteria.add(Restrictions.gt("id",2)); //select * from people where id > 2; //criteria.add(Restrictions.be 阅读全文