• Post Reply Bookmark Topic Watch Topic
  • New Topic

Query on many-to-many without inverse option set  RSS feed

Prabu Vs
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?


With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!