I’m migrating an application from Hibernate 5.6.14 to 6.1.6 and I encounter issues with the migration of some queries. The original query involving many entities, it has been simplified to the following one for testing purpose :
Here is the simplified version of the repository :
I use the following test to reproduce the issue :
The above test succeeds with version Hibernate 5.6.14 (Springboot 2.7.7) and fails with Hibernate 6.1.6 (Springboot 3.0.1). The test fails with the exception :
|