| Yoann Rodière, I'm not sure if it should be included. org.hibernate.Session extends EntityManager, so those JPA methods should be exposed by that org.hibernate.Session. org.hibernate.StatelessSession does not extend EntityManager, so I would see adding methods like createQuery(CriteriaQuery) as an improvement. Maybe that's OK for 5.4, but I don't think we should do it for 5.3. The methods I fixed were specifically methods that returned (deprecated) org.hibernate.Query and org.hibernate.SQLQuery, which was an oversight. Without the fix, an explicit cast to org.hibernate.query.Query and org.hibernate.query.NativeQuery would be necessary. This obviously needed to be corrected to make it clear that applications should move to org.hibernate.query.Query and org.hibernate.query.NativeQuery. |