SpringSource/grails-data-mapping — pull request #42 by erdi (2012-04-03 21:10:56+00:00)
Title: Fix for GRAILS-8480 'Embedded properties of mocked domain classes are not validated'

Embedded properties of mocked domain classes are not validated because in GormValidationApi validation is shallow by default but according to the docs (http://grails.org/doc/latest/ref/Domain%20Classes/validate.html) it should be deep.

One important note - I needed to extract org.codehaus.groovy.grails.validation.CascadingValidator from grails-core to grails-datastore-gorm because GormValidationApi has to be aware of that interface, therefore CascadingValidator should be removed from grails-core.