Tutorial by Examples

when the object is saved/updated, check the associations and save/update any object that require it (including save/update the associations in many-to-many scenario).
do not do any cascades, let the users handles them by themselves.
when the object is deleted, delete all the objects in the association.
when the object is deleted, delete all the objects in the association. In addition to that, when an object is removed from the association and not associated with another object (orphaned), also delete it.
when an object is save/update/delete, check the associations and save/update/delete all the objects found.
when an object is save/update/delete, check the associations and save/update/delete all the objects found. In additional to that, when an object is removed from the association and not associated with another object (orphaned), also delete it.

Page 1 of 1