[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5364) TransientObjectException for OneToMany with orphanRemoval and cascade
Cedric Thiebault (JIRA)
noreply at atlassian.com
Thu Jul 8 12:30:13 EDT 2010
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
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