Difference between Hibernate Cascade and Inverse properties

2.8k Views Asked by At
1

There are 1 best solutions below

4
On

Cascade

Person has a Address. Without cascade you need to save each of them separately. With cascade the save will automatically. In general it will specify what operations (save, delete etc) should be cascaded to child objects.

Inverse

It identifies the owner of a relationship. It is generally used for optimizing the sql generated i.e. it influences the query generation

Suggested reading: http://www.mkyong.com/hibernate/different-between-cascade-and-inverse/