File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes doubt in inverse= Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "doubt in inverse="true/false"" Watch "doubt in inverse="true/false"" New topic
Author

doubt in inverse="true/false"

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 289
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.


Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: doubt in inverse="true/false"
 
Similar Threads
Transitive Persistence
Having trouble in understanding bi directional relationships
cascade vs inverse
I'm getting too much confused with Hibernate
Why extra select on one to many mapping in hibernate ?