JDO
  1. JDO
  2. JDO-515

Allow custom settings for some annotation enum values

    Details

      Description

      JDO2.1 annotations utilise some enums defining the acceptable values for various strategies. The following need changing to allow implementations to provide custom values.

      @Persistence "valueStrategy", @DatastoreIdentity "strategy" are of the type IdGenerationStrategy. Changes required :
      1. IdGenerationStrategy needs UNKNOWN changing to UNSPECIFIED.
      2. @Persistence : add "customValueStrategy"
      3. @DatastoreIdentity : add "customStrategy"

      @Inheritance "strategy" is of type InheritanceStrategy. Changes required :
      1. InheritanceStrategy needs UNSPECIFIED adding.
      2. @Inheritance : change "strategy" to have default of UNSPECIFIED
      3. @Inheritance : add "customStrategy"

      1. jdo-515.patch
        11 kB
        Craig L Russell

        Issue Links

          Activity

            People

            • Assignee:
              Craig L Russell
              Reporter:
              Andy Jefferson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development