Grails - Cascading validation to specific subset of associations
<p>Assuming I have got a domain class called <code>SomeClass</code> and this class has got some <code>hasMany</code> associations with some other classes, e.g. <code>AssociateOne</code>, <code>AssociateTwo</code>, and <code>AssociateThree</code>. All of these associates have a <code>belongsTo</code> which points to <code>SomeClass</code>. </p>

<p>If I now have an instance of <code>SomeClass</code> and calling <code>validate()</code> for this instance usually all associated instances are validated as well unless I use <code>validate(deepValidate: false)</code>.</p>

<p>I now wonder if there is a possibilty to exclude all <code>AssociateThree</code> instances from the cascaded validation, but validate only <code>AssociateOne</code> and <code>AssociateTwo</code> instances when calling <code>validate()</code> on a <code>SomeClass</code> instance? </p>