-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: bugA general bugA general bug
Milestone
Description
Spring version 6.0.0-M5
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:
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
JohnNiang, guqing and sergey-morenets
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: bugA general bugA general bug