Personal definition:
Primary prosecution: maintain one side of the joined table, usually the Creator side, which will be more efficient.
Operation Principle: If inverse is set to false, one is set to true.
When cascade is used to check the business status, the value one is true.
I ,?
Inverse acts as the party holding the set object and determines whether to control the entire set. true --- No, it is only configured in one-to-pair and allow-to-pair.
The role and object of cascade, that is, setting the operations of one side of cascade will affect the operations of the other side.
2. inverse notes
1. The default value is false.
2. The values cannot be both false or true in the Multi-to-Multi-relationship. If the values are both false, the values are inserted twice. They are both true, and no operation is performed.
Iii. Specific operations
One-to-one: cascade = true, invers = true
One-to-convert: inverse = true, cascade = true
Fail-to-one; inverse = false, cascade depends on the situation
Direction-to-direction: Master prosecution direction: inverse = false, cascade depends on the situation
Retrieved: inverse = true, cascade depends on the situation