Andrei Nikulin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTkxMzEwYjU3...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15687?atlOrigin=eyJpIjoiYTkxMz...
) HHH-15687 (
https://hibernate.atlassian.net/browse/HHH-15687?atlOrigin=eyJpIjoiYTkxMz...
) Regression in Hibernate 6.1.5 (
https://hibernate.atlassian.net/browse/HHH-15687?atlOrigin=eyJpIjoiYTkxMz...
)
Issue Type: Bug Affects Versions: 6.1.5 Assignee: Unassigned Created: 08/Nov/2022 01:20 AM
Priority: Major Reporter: Andrei Nikulin (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
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 (
https://github.com/NikulinAndrei/spring-boot-3-test/tree/h5-passing )
Failing test with Hibernate 6 dependency: Branch h6-failing (
https://github.com/NikulinAndrei/spring-boot-3-test/tree/h6-failing )
Diffs between branches (
https://github.com/NikulinAndrei/spring-boot-3-test/compare/h5-passing......
) , 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 (
https://github.com/NikulinAndrei/spring-boot-3-test/blob/h6-failing/src/t...
)
@MappedSuperclass
public abstract class AbstractTranslationEntity<T extends AbstractEntity &
WithTranslationKey>
extends AbstractEntity {
If I remove *& WithTranslationKey* from generic type - test is passing with H6 also.
(
https://hibernate.atlassian.net/browse/HHH-15687#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15687#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210- sha1:ffe1a02 )