Debbie Philip (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiODdjMTM0Njgw...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16755?atlOrigin=eyJpIjoiODdjMT...
) HHH-16755 (
https://hibernate.atlassian.net/browse/HHH-16755?atlOrigin=eyJpIjoiODdjMT...
) NPE while retrieving static metamodel attribute of an embeddable within an entity (
https://hibernate.atlassian.net/browse/HHH-16755?atlOrigin=eyJpIjoiODdjMT...
)
Change By: Debbie Philip (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
)
A NullPointerException is thrown, while trying to retrieve an attribute of a static
metamodel class, generated for an Embeddable within an entity. The Embeddable class should
be a generic type, extend from a generic type parent class and the attribute should
belong to the parent class for this exception to occur.
{noformat}java.lang.NullPointerException: Cannot invoke
"org.hibernate.metamodel.model.domain.PersistentAttribute.getName()" because
"attribute" is null
at
org.hibernate.query.sqm.tree.domain.AbstractSqmPath.resolvePath(AbstractSqmPath.java:185)
at org.hibernate.query.sqm.tree.domain.AbstractSqmPath.get(AbstractSqmPath.java:218)
at org.hibernate.query.sqm.tree.domain.AbstractSqmPath.get(AbstractSqmPath.java:37)
at org.hibernate.RunHibernateTest.handleQueryResult(RunHibernateTest.java:65)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
{noformat}
(
https://hibernate.atlassian.net/browse/HHH-16755#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16755#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#100233- sha1:b4f309b )