|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.validation.GrailsDomainClassValidator org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator
public class HibernateDomainClassValidator extends GrailsDomainClassValidator
First checks if the Hibernate PersistentCollection instance has been initialised before bothering to cascade.
Field Summary |
---|
Fields inherited from class GrailsDomainClassValidator | |
---|---|
domainClass, grailsApplication, messageSource, targetClass |
Method Summary | |
---|---|
protected void
|
cascadeValidationToMany(Errors errors, 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 |
protected void
|
cascadeValidationToOne(Errors errors, BeanWrapper bean, java.lang.Object associatedObject, GrailsDomainClassProperty persistentProperty, java.lang.String propertyName)
|
protected GrailsDomainClass
|
getAssociatedDomainClassFromApplication(java.lang.Object associatedObject)
|
protected void
|
postValidate(java.lang.Object obj, Errors errors)
|
void
|
setApplicationContext(ApplicationContext applicationContext)
|
void
|
validate(java.lang.Object obj, Errors errors, boolean cascade)
|
Method Detail |
---|
@Override protected void cascadeValidationToMany(Errors errors, BeanWrapper bean, GrailsDomainClassProperty persistentProperty, java.lang.String propertyName)
errors
- The Spring Errors instancebean
- The BeanWrapper for the beanpersistentProperty
- The GrailsDomainClassProperty instancepropertyName
- The name of the property
@Override protected void cascadeValidationToOne(Errors errors, BeanWrapper bean, java.lang.Object associatedObject, GrailsDomainClassProperty persistentProperty, java.lang.String propertyName)
@Override protected GrailsDomainClass getAssociatedDomainClassFromApplication(java.lang.Object associatedObject)
@Override protected void postValidate(java.lang.Object obj, Errors errors)
public void setApplicationContext(ApplicationContext applicationContext)
@Override public void validate(java.lang.Object obj, Errors errors, boolean cascade)
Groovy Documentation