Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query on many-to-many without inverse option set

 
Prabu Vs
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic