OpenJPA
  1. OpenJPA
  2. OPENJPA-1181

Metamodel Generation must be more selective and controllable

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0-beta
    • Component/s: jpa
    • Labels:
      None

      Description

      JPA 2.0 specifies canonical memtamodel classes for persistent entities. Currently this generation process is uncontrolled.
      Every time the compiler is invoked with

      $ java -processor openjpa.AnnotationProcessor6 my.PObject

      we generate my.PObject_.java.

      We should be able to control this process. In fact, current limitation of being non-selective stops us from activating the service discovery mechanism.

      One suggestion (by Jeremy) is to add a annotation attribute in the @Entity class.
      Another suggestion (by Albert) is to bring this generation process closer to PCEnhancer.

      Can we also make use of the has @Generated annotation timestamp in PObject_.java to make some decisions?

        Issue Links

          Activity

          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Pinaki Poddar made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 2.0.0-M4 [ 12314149 ]
          Pinaki Poddar made changes -
          Affects Version/s 2.0.0 [ 12314019 ]
          Pinaki Poddar made changes -
          Link This issue is part of OPENJPA-1152 [ OPENJPA-1152 ]
          Pinaki Poddar made changes -
          Field Original Value New Value
          Link This issue is part of OPENJPA-1010 [ OPENJPA-1010 ]
          Pinaki Poddar created issue -

            People

            • Assignee:
              Pinaki Poddar
              Reporter:
              Pinaki Poddar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development