Clinton Bush (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=60a0574...
) *commented* on HHH-16075 (
https://hibernate.atlassian.net/browse/HHH-16075?atlOrigin=eyJpIjoiMGIzZW...
)
Re: NPE Caused by "Cannot invoke
"org.hibernate.engine.spi.EntityKey.getIdentifier()" because
"this.entityKey" is null" @ AbstractEntityInitializer:445 (
https://hibernate.atlassian.net/browse/HHH-16075?atlOrigin=eyJpIjoiMGIzZW...
)
Andrea, I finally was able to reproduce it using your template. Please find the project
attached. The issue stems from a circular dependency between our User and UserRole
entities. Hibernate 5 had no issue with this, however Hibernate 6 chokes on it.
hibernate-orm-6.zip (
https://hibernate.atlassian.net/secure/attachment/50186/50186_hibernate-o... )
(
https://hibernate.atlassian.net/browse/HHH-16075#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16075#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:01e0849 )