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
Exception mapping fails with java.lang.NoSuchMethodError
Caused by: java.lang.NoSuchMethodError: 'java.io.Serializable org.hibernate.StaleObjectStateException.getIdentifier()'
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:304)
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:232)
In Hibernate 5 the method had the following signature:
aspan
changed the title
JPA exception mapping fails with Hibernate 6.1.1
JPA exception mapping fails with Hibernate 6.1.1 in spring 6.0.0-M5
Jul 22, 2022
Spring version 6.0.0-M5
Exception mapping fails with
java.lang.NoSuchMethodError
In Hibernate 5 the method had the following signature:
java.io.Serializable org.hibernate.StaleObjectStateException.getIdentifier()
But it has changed in hibernate 6.x to be:
java.lang.Object org.hibernate.StaleObjectStateException.getIdentifier()
The change was made in this commit
hibernate/hibernate-orm@5b3c6c4#diff-97a3fcd51fd4aefa42e50567ebf6dec8d8f404d2e5be39f6b4647c1698ef3aba
The text was updated successfully, but these errors were encountered: