You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
is defined, we can ask the container for the validator (is there an Aware interface?) and then perform validation within MongoTemplate methods that take a POJO for Create, update, or delete operations.
Fixed by integrating Maciej's contribution. We now auto detect the presence of javax.validation API on the classpath and register an approrpiate Validator as well as an event listener that triggers validaton right before persisting the entities
That's right as the support will was introduced in the 1.1.x timeline and will not be back-ported to the 1.0.x one. So you have to use the latest 1.1 version to get access to it. Please refrain from re-opening tickets that have been closed against an already released version as the ticket has already made it into the changelog already. Create a new ticket in case needed then
Mark Pollack opened DATAMONGO-36 and commented
Spring 3.0 supports JSR-303. If
<bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
is defined, we can ask the container for the validator (is there an Aware interface?) and then perform validation within MongoTemplate methods that take a POJO for Create, update, or delete operations.
Affects: 1.0 M2
Attachments:
Referenced from: commits 5b13307
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: