Inherited Constraints not validated in @Validateable classes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Inherited Constraints not validated in @Validateable classes

Steven Grossman
In grails 1.3.7, inherited constraints are not validated for @Validateable classes.  They are validated for domain classes.

GRAILS-4435 (http://jira.grails.org/browse/GRAILS-4435) raised this issue for grails 1.1 and it was fixed in 1.2.  However, the fix did not seem to make its way to the 1.3.x branch (and by extension, to the 2.0.x branch).

Is this a regression or was there a reason to revert the fix?

Thanks,
Steven
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Inherited Constraints not validated in @Validateable classes

Steven Grossman
This works in 2.0 as long as the top-most class is annotated grails.validation.Validateable.

It does not work if the 'grails.validateable.classes' configuration approach is used.
Loading...