from Commodity order by prive asc
Query query = session.createQuery(hql);
Query query = session.createQuery(hql);
2016-11-04
许多人一直在说HQL跟SQL语句一样,是的,底层是通过SQL操作的,但是老师开头就说了,HQL是面向对象的,它查询后返回的是对象,对象封装了属性跟方法,方便操作,面向对象是JAVA的核心。
2016-11-04
String hql = "from Seller";
Query query = session.createQuery(hql);
Query query = session.createQuery(hql);
2016-11-03
最赞回答 / specialshoot
对于hibernate5,不要导入import org.hibernate.Query包,用import org.hibernate.query.Query包来代替就行了,都是hibernate5里面的
2016-11-03
赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞赞