class ObjectA {
ObjectB objectB
static mapping = {
objectB cascade: 'none'
}
}
class ObjectB {
}
In the example above both ObjectA and ObjectB are "domain" classes in Grails. ObjectA has an association to ObjectB. In the mapping of ObjectA cascade is set to 'none' which disables cascading saves to objectB.
Is there anyway to make this the default cascade behavior for ALL domain classes without having to have a mapping defined for every association?