-->
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: Query on many-to-many without inverse option set
PostPosted: Sat Apr 11, 2009 9:10 am 
Newbie

Joined: Fri Apr 10, 2009 11:26 am
Posts: 5
What is the impact of defining a many-to-many association without setting the inverse=true option?

Person and Group are two entity types with bidirectional many-to-many association.
I have a scenario where the changes has to be persisted from both Person and Group end.

To my knowledge, unless inverse=true option is set on any one side, hibernate is going to treat them as different instances in memory.
Is there any option to set inverse=true and also persist changes from both ends? or is it safe to ignore inverse option?

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.