Puhong You (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15453 (
https://hibernate.atlassian.net/browse/HHH-15453?atlOrigin=eyJpIjoiZWY1NW...
)
Re: java.lang.NullPointerException: Cannot invoke
"org.hibernate.engine.spi.EntityEntry.getEntityKey()" because
"ownerEntry" is null (
https://hibernate.atlassian.net/browse/HHH-15453?atlOrigin=eyJpIjoiZWY1NW...
)
Hi, Andrea, thanks for looking into this. Your setup looks almost identical to mine. The
only difference I can think of is that in my case I did not create the User and Role
instances in the my test, so when I query for the user, the user object does not exist in
session cache and Hibernate has to construct the user object from the database. Could it
be that since you create the users in the test so the user objects are served from the
session cache in your test?
(
https://hibernate.atlassian.net/browse/HHH-15453#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15453#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#100204- sha1:f005d5a )