-
Notifications
You must be signed in to change notification settings - Fork 30
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
On integration with Bean Validation and Jakarta Persistence #237
Comments
While the Persistence Spec discusses "3.6. Bean Validation" there is no dependency in JPA to Validation. Same should be with Validation or Persistence here. |
We do the same; it will work as the capability or extension of the specification if the vendor wants it to do so. https://github.com/jakartaee/data/blob/main/spec/src/main/asciidoc/jakarta-ee.adoc |
Pull #231 , which is currently in progress, covers Jakarta Validation, and does so in a way that does not introduce API dependencies on Jakarta Validation. I'm intending to get some updates for CrudRepository in there as well, once another pull merges. If either of you have comments, please add them to #231 . |
We were closing this issue once we had a PR fixing this point. |
Looks like applying validation on save and saveAll is defined. But ti is also defined in JPA, JPA will validate entities upon insertion or update. Describe the mechanism to avoid double callor explicit in the spec that the double call is an expected behavior (maybe to do validation in sync vs async?)
The text was updated successfully, but these errors were encountered: