Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-697

Support integration with javax.validation (JSR303)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • api, specification, tck
    • 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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            andyj Andy Jefferson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: