[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-5364) TransientObjectException for OneToMany with orphanRemoval and cascade

Gail Badner (JIRA) noreply at atlassian.com
Sun Jul 11 15:36:13 EDT 2010


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

Gail Badner resolved HHH-5364.
------------------------------

      Assignee: Gail Badner
    Resolution: Duplicate

> TransientObjectException for OneToMany with orphanRemoval and cascade
> ---------------------------------------------------------------------
>
>                 Key: HHH-5364
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5364
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: annotations, core
>    Affects Versions: 3.5.2
>            Reporter: Cedric Thiebault
>            Assignee: Gail Badner
>         Attachments: TestCase.zip
>
>
> Environnement:
> - basic one to many relation parent/child
> - orphanRemoval=true for parent 
> - cascade only from child to parent (persist cascade only because I don't want to delete the parent if I delete a child)
> When I add a child to the parent and I save the child, I have a TransientObjectException.
> But if I remove orphanRemoval, it works.
> See the attached test case (if you set orphanRemoval=false on the Parent, test will pass).

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