We are using Spring Boot 2.5.12, with Hibernate 5.4.33, which is working nicely. I am trying to update to Spring Boot 3.1.2, with Hibernate 6.2.6. In a test, I’ve got this error:
From my undersdanding, the verification done by Hibernate in that function findSubPart shouldn’t be done for joined inheritance. I was not able to reproduce clearly the bug with a simple test case, so I might be missing something. I’ll try to give as much information as I can on our setup. Please see in the joined files
- tables.sql: the tables involved in the query
- classes.java: the Java classes of the entity (with lombok annotations)
- query.sql: the sql query being done in the executed jdbc query
- test.kt: the pseudo kotlin code representing the actual test which make the above stack trace
|