Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-14944 (
https://hibernate.atlassian.net/browse/HHH-14944?atlOrigin=eyJpIjoiMTkzOG...
)
Re: Bug: Detach entity removes NaturalIdCrossReference in shared cache too (
https://hibernate.atlassian.net/browse/HHH-14944?atlOrigin=eyJpIjoiMTkzOG...
)
An entity is considered associated with the Session if it contains a corresponding
“entry”. As detach and clear need to disassociate the entity from the Session, its
necessary that their entries are removed. It’s really up to us what we want to do with
natural-id caches as that feature is entirely behind the scope of the JPA spec.
That said, I tend to agree that we should not remove the cross-references from the
natural-id second-level cache nor do we really need to remove it from the natural-id
Session cache.
(
https://hibernate.atlassian.net/browse/HHH-14944#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14944#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#100225- sha1:6805d32 )