1.cascade Properties
The purpose of the Cascade property is to describe the cascading nature of the associated object as it operates, and only the element that involves the relationship has the Cascade attribute. Tags with cascade attributes include <many-to-one/>, <one-to-one/>, <any/>, <set/>, <bag/>, <idbag/> , <list/> and <array/>.
Note that:<one-to-many/> and <many-to-many/> are used inside the collection tag, so the Cascade property is not required.
2.inverse Properties
Inverse describes how an association between objects is maintained. It can reverse the task of maintaining the associated relationship, which is done by the other party. Inverse only exists in the element of the collection tag, and when Inverse is true, the "one" side reverses the association relationship to the "many" side. In the association relationship, the inverse is the active side of false, and the active side is responsible for maintaining the association relationship.
Inverse refers to the control direction of the association relationship, and Cascade refers to the chain operation between the levels.