[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7245) Inline natural-id synchronization doesn't consider objects loaded from shared cache

Guenther Demetz (JIRA) noreply at atlassian.com
Fri Apr 13 06:15:50 EDT 2012


    [ https://hibernate.onjira.com/browse/HHH-7245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46273#comment-46273 ] 

Guenther Demetz commented on HHH-7245:
--------------------------------------

Maybe following pull-request is the more elegant solution as the above, 
as is centralizes the natural-id-synch to the doLoad method instead to duplicating the code into loadFromSecondLevelCache:

https://github.com/hibernate/hibernate-orm/pull/309

> Inline natural-id synchronization doesn't consider objects loaded from shared cache
> -----------------------------------------------------------------------------------
>
>                 Key: HHH-7245
>                 URL: https://hibernate.onjira.com/browse/HHH-7245
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: caching (L2), core
>    Affects Versions: 4.1.2
>            Reporter: Guenther Demetz
>              Labels: 2L-Cache, NaturalId
>
> Similiar to HHH-7237.
> Inline natural-id synch process relies on all entity objects in persistence context having it's according natural-id values cached in the NaturalIdResolutionCache. While we assured that most scenarios, we forgot about entity loads from shared cache.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list