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