-->
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.  [ 3 posts ] 
Author Message
 Post subject: remove item of collection in parent problem
PostPosted: Thu Jan 29, 2004 9:25 pm 
Newbie

Joined: Thu Jan 29, 2004 2:27 pm
Posts: 2
I load a parent with a collection of children from db. If I remove one of item from the collection and persist the parent object to db. The item which I removed are still in db.

If I have create a Interceptor implementation and print out the collection on 'findDirty' method, the currentState & previousState on the collection are same. I am not sure how to fix this. I try the BLog example from reference document. It is same.

Any suggestion or help will be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 9:52 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
cascade="all-delete-orphan"

:-D

(I'm starting to understand why the regulars here post so many one-line responses! ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 2:09 pm 
Newbie

Joined: Thu Jan 29, 2004 2:27 pm
Posts: 2
Rob, thanks. I will try it out.


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

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.