-->
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: Updating parent updates all children though unchanged
PostPosted: Mon Jun 05, 2006 3:40 pm 
Newbie

Joined: Mon Jun 05, 2006 3:27 pm
Posts: 2
Hi,
I retrieved a the parent and it's children from database. Updated a parent attribute (children not changed). When saving the parent, it also updates all the children. Why? The same happens when I remove a child and save the parent.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 9:07 pm 
Senior
Senior

Joined: Sun Jun 04, 2006 1:58 am
Posts: 136
try setting inverse = true on assiociations


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 9:34 pm 
Newbie

Joined: Mon Jun 05, 2006 3:27 pm
Posts: 2
inverse="true" is set on the parent mapping.

scarface wrote:
try setting inverse = true on assiociations


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.