Found some regression in Hibernate while trying to migrate existing application to Spring-Boot-RC1. Simplified Hibernate-only test-case : Passing test with Hibernate 5 dependency: Branch h5-passing Failing test with Hibernate 6 dependency: Branch h6-failing Diffs between branches , only javax -> jakarta and Hibernate version are changed. Error is saying: java.lang.IllegalArgumentException: org.hibernate.query.sqm.InterpretationException: Error interpreting query [from UserTranslation where classifier.id=?1]; this may indicate a semantic (user query) problem or a bug in the parser [from UserTranslation where classifier.id=?1] It seems that the issue is somehow related to Type resolution / generics. this line of code here
If I remove & WithTranslationKey from generic type - test is passing with H6 also. |