Guenther Demetz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjhmNzUyNzNi...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16558?atlOrigin=eyJpIjoiNjhmNz...
) HHH-16558 (
https://hibernate.atlassian.net/browse/HHH-16558?atlOrigin=eyJpIjoiNjhmNz...
) Detach entity removes NaturalIdCrossReference in shared cache too (
https://hibernate.atlassian.net/browse/HHH-16558?atlOrigin=eyJpIjoiNjhmNz...
)
Issue Type: Bug Affects Versions: 6.2.2 Assignee: Unassigned Components: hibernate-core,
hibernate-jcache Created: 05/May/2023 05:38 AM Environment: Hiberante ORM 6, Java11,
Windows, SqlServer Priority: Major Reporter: Guenther Demetz (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
According JPA Specification the method *detach* removes the given entity from the
persistence context (first level cache). It is not correct to evict stuff in second level
(NaturalIdCache) too.
This is a reissue of
https://hibernate.atlassian.net/browse/HHH-14944 containing a
testcase and solution proposal adapted for branch 6.2.
(
https://hibernate.atlassian.net/browse/HHH-16558#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16558#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:7f918b6 )