Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
While any user can make use of a JSR303 implementation and provide validation of persistent objects, it would be nice to provide integration in JDO with javax.validation. This can be achieved in the same way as JPA2 allows it, namely by adding the following persistence properties
javax.jdo.option.validation.mode=none, auto, callback
javax.jdo.option.validation.groups.prepersist
javax.jdo.option.validation.groups.preupdate
javax.jdo.option.validation.groups.predelete
See JPA2 spec Section 3.6 for a start point on wording. DataNucleus already provides this (just that it currently uses differently named PMF properties).