-->
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 on cascade and delete orphan
PostPosted: Wed Apr 28, 2010 11:43 am 
Newbie

Joined: Mon Jan 11, 2010 11:05 am
Posts: 8
Hi,

i have a problem with deleting child using cascade:
Quote:
object A contains a set<B> (object B) linked with oneToMany relation and with CascadeType.SAVE_UPDATE, CascadeType.DELETE_ORPHAN.)


Quote:
object B contains a set<C> (object C) linked with oneToMany relation and with CascadeType.SAVE_UPDATE, CascadeType.DELETE_ORPHAN.)


Quote:
object C contains a set<D> (object D) linked with oneToMany relation and with CascadeType.SAVE_UPDATE, CascadeType.DELETE_ORPHAN.)


i put a CascadeType.ALL at level oneToMany too for all theses objects.

so when, i remove one child of object D from the set, and call saveOrUpdate(A), nothing is delete!!!

please help.

Thanks


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.