-->
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: many-to-many update="false"?
PostPosted: Sun Mar 13, 2005 3:36 pm 
Newbie

Joined: Sun Mar 13, 2005 3:22 pm
Posts: 2
Hi
I have a many-to-many mapping between two tables, eg Person and Address, joined by PersonAddress table. I like to update an address without touch its mapping data. How do I do that? for example, When I get updated data from HTTP request, which only contains address info without the mapping data, the update on address table will empty the person-address mapping. How do I prevent the mapping from updating? Can I have something like "update='false'"?

Thanks.

Michael.


Top
 Profile  
 
 Post subject: Re: many-to-many update="false"?
PostPosted: Sun Mar 13, 2005 11:19 pm 
Newbie

Joined: Sun Mar 13, 2005 3:22 pm
Posts: 2
I think I found the answer. I can do that by enabling inverse attribute of many-to-many set in the Address side.


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.