-->
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: Cascade Question
PostPosted: Sat Feb 01, 2014 1:57 am 
Newbie

Joined: Sat Feb 01, 2014 1:37 am
Posts: 1
Hi dears,
I'm new in hibernate .I used one- to-many relation in my mapping file although I used cascade = "all-delete-orphan" but actually when I update properties of first table(one side relation) and its objects in other table (many side relation),for example if first mapped class had 3 related object from second mapped class I reduce to 2(so related records in second table should reduced to 2) , but it just make the foreign key(of first table) in deleted record in second table to null and don't delete this record completely.. I thought it would be resolved if I put cascade = "all-delete-orphan" but it did not. what does the problem originate from?

Thanks in advance.


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.