While upgrading to SpringBoot 3.0.2 (Hibernate 6)I encountered issue where a native query I use throws a cryptic AssertionError exception. Eventually I pinpointed the issue to be related to entity having InheritanceStrategy.JOINED and was able to reproduce in Hibernate ORM unit test. Stack trace:
Reproduction test case https://github.com/jberlowski/hibernate-test-case-templates/blob/main/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JoinedEntityHibernate6QueryTest.java I was able to ascertain that:
If I am doing something wrong it would be helpful if the error was able to put me on the right track, but I am not able to make heads or tails from the exception thrown. |