[hibernate-issues] [JIRA] (HHH-13882) NullPointerException when using JPA @Lock + @EntityGraph + @ElementCollection

Nathan Xu (JIRA) jira at hibernate.atlassian.net
Fri Mar 13 18:11:40 EDT 2020


Nathan Xu ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Af1c90216-c2ff-4df7-8e20-9d0e140d7f64 ) *commented* on HHH-13882 ( https://hibernate.atlassian.net/browse/HHH-13882?atlOrigin=eyJpIjoiNzI0OTBjMWUxODA1NDVjOWFmNWI4ZmI2NTZiNTNlYTEiLCJwIjoiaiJ9 )

Re: NullPointerException when using JPA @Lock + @EntityGraph + @ElementCollection ( https://hibernate.atlassian.net/browse/HHH-13882?atlOrigin=eyJpIjoiNzI0OTBjMWUxODA1NDVjOWFmNWI4ZmI2NTZiNTNlYTEiLCJwIjoiaiJ9 )

I investigated a little bit. It seems the root cause is some internal bug that collection from element is registered with class alias ending up with overriding existing entity from element. I’ll create a PR quickly. The bugfix will only be applied to v5.x for v6 has gone through dramatic redesign in the relevant code part.

( https://hibernate.atlassian.net/browse/HHH-13882#add-comment?atlOrigin=eyJpIjoiNzI0OTBjMWUxODA1NDVjOWFmNWI4ZmI2NTZiNTNlYTEiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13882#add-comment?atlOrigin=eyJpIjoiNzI0OTBjMWUxODA1NDVjOWFmNWI4ZmI2NTZiNTNlYTEiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:a2b3dcc )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200313/7501d8fd/attachment.html 


More information about the hibernate-issues mailing list