|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.validation.GrailsDomainClassValidator
org.codehaus.groovy.grails.validation.HibernateDomainClassValidator
public class HibernateDomainClassValidator
A validator that first checks if the Hibernate PersistentCollection instance has been initialised before bothering to cascade
Constructor Summary | |
---|---|
HibernateDomainClassValidator()
|
Method Summary | |
---|---|
protected void |
cascadeValidationToMany(org.springframework.validation.Errors errors,
org.springframework.beans.BeanWrapper bean,
GrailsDomainClassProperty persistentProperty,
java.lang.String propertyName)
Overrides the default behaviour and first checks if a PersistentCollection instance has been initialised using the wasInitialised() method before cascading |
Methods inherited from class org.codehaus.groovy.grails.validation.GrailsDomainClassValidator |
---|
cascadeToAssociativeProperty, cascadeValidationToOne, getDomainClass, setDomainClass, setMessageSource, supports, validate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateDomainClassValidator()
Method Detail |
---|
protected void cascadeValidationToMany(org.springframework.validation.Errors errors, org.springframework.beans.BeanWrapper bean, GrailsDomainClassProperty persistentProperty, java.lang.String propertyName)
cascadeValidationToMany
in class GrailsDomainClassValidator
errors
- The Spring Errors instancebean
- The BeanWrapper for the beanpersistentProperty
- The GrailsDomainClassProperty instancepropertyName
- The name of the propertyPersistentCollection.wasInitialized()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |