Forums Register Login

doubt in inverse="true/false"

+Pie Number of slices to send: Send
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.
I love a good mentalist. And so does this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 704 times.
Similar Threads
I'm getting too much confused with Hibernate
cascade vs inverse
Transitive Persistence
Having trouble in understanding bi directional relationships
Why extra select on one to many mapping in hibernate ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:32:46.