[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7206) Manage natural-id synchronization without flushing

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Apr 3 17:13:50 EDT 2012


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

Steve Ebersole commented on HHH-7206:
-------------------------------------

I went ahead and pushed this with the code to track "no longer valid" natural id resolutions.  It clears them after flush.  

Longer term it might be nice to let the developer control whether this code is used or whether to write the values to the db.  Either via {{FlushMode}} or through a new {{NaturalIdLoadAccess}}/{{SimpleNaturalIdLoadAccess}} method.

> Manage natural-id synchronization without flushing
> --------------------------------------------------
>
>                 Key: HHH-7206
>                 URL: https://hibernate.onjira.com/browse/HHH-7206
>             Project: Hibernate ORM
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 4.1.1
>         Environment: Hibernate4, database-independent
>            Reporter: Guenther Demetz
>            Assignee: Steve Ebersole
>              Labels: flush, naturalId
>             Fix For: 4.1.2
>
>          Time Spent: 12h 46m
>
> With few code changes I think it is possible to make NaturalIdLoadAccess work with no need to rely on flush at all,
> please see following comments.

--
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