Note that Bean Validation engines are not supposed to cause non-loaded state to be retrieved from the database (see http://beanvalidation.org/1.1/spec/#constraintdeclarationvalidationprocess-validationroutine-traversable); The idea being, that the data has been validated properly when it has been written to the store the last time. If you really want to validate lazy state, you could plug in a custom traversable resolver.
Would you agree if we closed the issue as "works as designed"?
|