cascading validation with annotated hibernate entities?
13 views
Skip to first unread message
zyro
unread,
Jul 28, 2014, 3:15:23 AM7/28/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grails-de...@googlegroups.com
hi,
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).