class B { static belongsTo = A }
defines the cascading behaviour from A to B.
When domain B belongsTo A
, saves and deletes from A
cascade to B
.
Operations are cascaded from A
to B
but not from B
to A
.
class A { static hasMany = [bs:B] }
defines a one-to-many relationship, a