David Wolff (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5cd47a9...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjA2OTRmNTk1...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16144?atlOrigin=eyJpIjoiNjA2OT...
) HHH-16144 (
https://hibernate.atlassian.net/browse/HHH-16144?atlOrigin=eyJpIjoiNjA2OT...
) Query parsing/validation fails in Hibernate 6/Spring Boot 3 (
https://hibernate.atlassian.net/browse/HHH-16144?atlOrigin=eyJpIjoiNjA2OT...
)
Issue Type: Bug Affects Versions: 6.1.6 Assignee: Unassigned Attachments:
hibernate-example.zip Created: 06/Feb/2023 09:33 AM Environment: Spring Boot
3.0.2/Hibernate 6.1.6.Final. Corretto 16 JVM. Postgres and H2 databases both exhibit the
issue. Priority: Major Reporter: David Wolff (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5cd47a9...
)
I have a Spring Boot project I'm upgrading from 2.7.7 to 3.0.2 which involves an
upgrade from Hibernate 5.6.14.Final to Hibernate 6.1.6.Final. The app works great using
Boot 2.7.7/Hibernate 5.6.14, but the app fails to start after the upgrade to Hibernate 6
due to the following:
Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute with the given
name [name] on this ManagedType [java.lang.Object]
at
org.hibernate.metamodel.model.domain.AbstractManagedType.checkNotNull(AbstractManagedType.java:281)
~ [hibernate-core-6.1.6.Final.jar:6.1.6.Final]
The part of the model in question uses Java generics rather heavily. I've attached a
zip file with a gradle project that outlines the issue. The code is stripped down from the
actual use case, but it should serve well to highlight the problem.
(
https://hibernate.atlassian.net/browse/HHH-16144#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16144#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#100214- sha1:4a69e91 )