Reputation: 1948
I know that one of the benefits of the one to many relationships is cascading behavior such as the deletion of a parent(owning) object resulting in the deletion of the children(objects the parent owned) but what if the objects owned by it are also owned by another parent do they still get deleted if only one parent gets deleted?
Upvotes: 0
Views: 38
Reputation: 24776
GORM/Grails is smart enough to figure out in this case that the child instances should not be deleted when they are in use by another instance. (As indicated in my comments to the original question)
Upvotes: 1