-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: delete-orphan doesn't seem to work with detached objects
PostPosted: Mon Nov 01, 2004 4:44 pm 
Regular
Regular

Joined: Fri Jul 16, 2004 3:04 pm
Posts: 52
Location: Wiltshire UK
Hi All, after having posted here http://forum.hibernate.org/viewtopic.php?t=935415 & waited a long time to see if any one can answer it, but with no final answer, I can only assume that there is a problem with cascade="all-delete-orphan" when re-attaching detached objects. If anyone is experiencing a similar problem please see the post referenced above. I can make the failing unit test work by explicitly deleting the child after saving the parent
Code:
saveObject(parent2);
        // have to explicitly delete child here if this is to work - CAN NOT rely on delete-orphan working!
        deleteObject(child);


I am however still really curious, have I misunderstood the documentation & HIA here, or is this a bug? (Despite this both Hibernate & HIA are excellent- thanks guys!!).

Many Thanks
Paul


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.