You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hibernate 5.2 has deprecated org.hibernate.Query in favour of org.hibernate.query.Query. Unfortunately the Session is returning the new type.
In HibernateTemplate#bulkUpdate we have an explicit check on org.hibernate.Query that leads to:
java.lang.NoSuchMethodError: org.hibernate.Session.createQuery(Ljava/lang/String;)Lorg/hibernate/query/Query;
at org.springframework.orm.hibernate5.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1103)
at org.springframework.orm.hibernate5.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1099)
at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:340)
at org.springframework.orm.hibernate5.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:307)
at org.springframework.orm.hibernate5.HibernateTemplate.bulkUpdate(HibernateTemplate.java:1099)
Stéphane Nicoll opened SPR-14425 and commented
Hibernate 5.2 has deprecated
org.hibernate.Query
in favour oforg.hibernate.query.Query
. Unfortunately theSession
is returning the new type.In
HibernateTemplate#bulkUpdate
we have an explicit check onorg.hibernate.Query
that leads to:Affects: 4.3.1
Issue Links:
Referenced from: commits 16d5ba9, 19e5a34
1 votes, 5 watchers
The text was updated successfully, but these errors were encountered: