db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JDO-697) Support integration with javax.validation (JSR303)
Date Tue, 11 Oct 2011 15:05:12 GMT
Support integration with javax.validation (JSR303)
--------------------------------------------------

                 Key: JDO-697
                 URL: https://issues.apache.org/jira/browse/JDO-697
             Project: JDO
          Issue Type: New Feature
          Components: api, specification, tck
            Reporter: Andy Jefferson


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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message