[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-799) merge() and embedded composite identifiers

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:01:13 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-799.
------------------------------


Closing stale resolved issues

> merge() and embedded composite identifiers
> ------------------------------------------
>
>                 Key: HHH-799
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-799
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>            Priority: Minor
>             Fix For: 3.1 beta 2
>
>
> attempting a merge() on an entity with an embedded composite identifier currently breaks due to the fact that internally the merge processing attempts to call get() on any transient entities; the problem there is that in the case of embedded composite identifiers the get processing actually populates the state into the entity class instance passed in as the identifier.
> Then simple fix seems to be just forcing a deep copy of the entity being merged in this case and passing the copy into get().  Need more tests to verify though.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list