-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DATAMONGO-36 - Validation support to MongoTemplate #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cool stuff! Here are some minor things I'd like to see before I pull this stuff in and do the final polishing:
Beyond that, this is very cool already. Thanks a ton! |
- changed class name to ValidatingMongoEventListener - replaced namespace validation-enabled to flag disable-validation in mongo:mapping-converter - added integration tests - minor fixes
I am still learning how to use git properly and because of that commit f4f9e3b was made by accident (and it's message does not make much sense). All requested changes applied. Thanks for good advices - I hope its now as it should be. |
No need to be overly concerned about that. I'll go ahead and squash all commits into one before merging them back anyway. Changes look good, I'll have a go on that in a few minutes. Thanks a ton for the contribution. Would you mind filling out the form over here and post the sign-up number you get as confirmation back here in the comments? It's basically a formal way to allow us using your contribution under Apache V2.0 license. |
Confirmation number is: 25320120427042238 |
Brilliant, thanks! |
I just pushed a squashed and polished commit of your changes to the master branch. See 5b13307 for details. Thanks again for the contribution! |
Added JSR-303 validation support to MongoTemplate. Once validating event listener is registered it is automatically invoked before objects are saved in database.
Automatic component registration via XML namespace will be added soon in separate pull request after this one is accepted. Changes are already made in another branch: https://github.com/maciejwalkowiak/spring-data-mongodb/tree/DATAMONGO-36-namespace