-->
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.  [ 2 posts ] 
Author Message
 Post subject: bidirection updates in 1-m or m-m relationship
PostPosted: Sat Aug 07, 2010 5:11 am 
Newbie

Joined: Sat Aug 07, 2010 5:08 am
Posts: 1
If you have a one-many or many-many relationship and both parent and child records are modified, can hibernate coordinate a mutual update to both sides of the relationship?


Top
 Profile  
 
 Post subject: Re: bidirection updates in 1-m or m-m relationship
PostPosted: Mon Aug 09, 2010 4:08 am 
Regular
Regular

Joined: Fri Aug 06, 2010 1:49 am
Posts: 102
Location: shynate26@gmail.com
yes, you have to explicitly specify cascade="save-update" . Please have a look at the attribute cascade in set.

Hope this helps.

_________________

Cheers!
Shynate
mailto:shynate26@gmail.com
www.CSSCORP.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.