[hibernate-issues] [JIRA] (HHH-14057) Hashcode called with null fields when loading from second level cache
Alex CD (JIRA)
jira at hibernate.atlassian.net
Tue Jun 2 19:29:25 EDT 2020
Alex CD ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A9b0f6d49-bc76-4aca-875b-c8525b2f039d ) *created* an issue
Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZjhiZDhkZDkyZDE5NGFjYTk3N2EyNDE5OWQwZTk0ZDgiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14057?atlOrigin=eyJpIjoiZjhiZDhkZDkyZDE5NGFjYTk3N2EyNDE5OWQwZTk0ZDgiLCJwIjoiaiJ9 ) HHH-14057 ( https://hibernate.atlassian.net/browse/HHH-14057?atlOrigin=eyJpIjoiZjhiZDhkZDkyZDE5NGFjYTk3N2EyNDE5OWQwZTk0ZDgiLCJwIjoiaiJ9 ) Hashcode called with null fields when loading from second level cache ( https://hibernate.atlassian.net/browse/HHH-14057?atlOrigin=eyJpIjoiZjhiZDhkZDkyZDE5NGFjYTk3N2EyNDE5OWQwZTk0ZDgiLCJwIjoiaiJ9 )
Issue Type: Bug Affects Versions: 5.4.15 Assignee: Unassigned Created: 02/Jun/2020 16:29 PM Priority: Major Reporter: Alex CD ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A9b0f6d49-bc76-4aca-875b-c8525b2f039d )
Loading a child entity from second level cache with eager bidirectional relationship with parent causes NullPointerException.
During child entity loading, the parent load is triggered that has a Set of children and after this load the temporary child entity (only id field, others null) is added to this Set, calling the hashcode where no business key can be computed because of null fields.
( https://hibernate.atlassian.net/browse/HHH-14057#add-comment?atlOrigin=eyJpIjoiZjhiZDhkZDkyZDE5NGFjYTk3N2EyNDE5OWQwZTk0ZDgiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14057#add-comment?atlOrigin=eyJpIjoiZjhiZDhkZDkyZDE5NGFjYTk3N2EyNDE5OWQwZTk0ZDgiLCJwIjoiaiJ9 )
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#100127- sha1:2783216 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200602/bcde0871/attachment.html
More information about the hibernate-issues
mailing list