cascading validation with annotated hibernate entities?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

cascading validation with annotated hibernate entities?


how to get cascading validation to work with annotated hibernate
entities (JPA annotations / hibernate.cfg.xml)?

as i read the code, i think there is the following issue:

GrailsDomainClassValidator.cascadeValidationToOne(...) checks if the
entity being validated is the owning side of the association or if a
explicit cascading behavior has been defined via mapping dsl:

but AbstractGrailsHibernateDomainClass.isOwningClass(...) statically
returns false and
GrailsHibernateDomainClassProperty.explicitSaveUpdateCascade is not set
as well (but the cascading behavior is defined via JPA annotations to ALL).

hence, GrailsDomainClassValidator always returns at that point and
validation seems to be never applied to associated entities.

thanks, zyro

You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit
For more options, visit