Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

doubt in inverse="true/false"

Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was going through an article from the site Mykong site
The purpose of the article is to explain the inverse keyword.

I am not getting the 4th point i.e the topic which has heading
4. inverse=”false” Example

There is an insert egample
When a “Stock” object is saved, Hibernate will generated three SQL statements, two inserts and one update.
I am not getting the point why there needs to be an update at all?
Even if stock is the relationship owner what is the need of update ?

Could anyone please help me in this.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!