OpenJPA
  1. OpenJPA
  2. OPENJPA-1011

Instantiate meta-model classes for JPA 2.0 from XML descriptors

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0, 2.1.1, 2.2.0
    • Fix Version/s: 2.4.0
    • Component/s: None
    • Labels:
      None

      Description

      JPA 2.0 has introduced a specification for strictly-typed dynamic query construction. The type-strictness is based on availability of a meta-model. The user application can either use meta-model API to access the type information or instantiate the meta-model (referred as canonical meta-model) with a set of auto-generated classes for compile-time binding. This issue refers to instantiating the canonical meta-model at compile-time.
      The process involves processing source code annotations or xml descriptors.

      Annotation processing support in Java platform has significantly changed across JDK version 5 and 6. In JDK5, the annotation processing was supported by a command-line tool named apt based on com.sun.mirror API library. In JDK 6, the annotation processing is more seamlessly integrated with javac compilation process with javax.annotation API libraries.

      It is not obvious at this point on how to hook into compiler life-cycle when source code has no annotation and persistence meta-data is only available in XML descriptors.

        Issue Links

          Activity

          Mark Struberg made changes -
          Fix Version/s 2.4.0 [ 12325298 ]
          Fix Version/s 2.3.0 [ 12319463 ]
          Albert Lee made changes -
          Fix Version/s 2.3.0 [ 12319463 ]
          Fix Version/s 2.2.0 [ 12315910 ]
          Affects Version/s 2.1.1 [ 12316191 ]
          Affects Version/s 2.2.0 [ 12315910 ]
          Kevin Sutter made changes -
          Issue Type New Feature [ 2 ] Improvement [ 4 ]
          Priority Major [ 3 ] Critical [ 2 ]
          Michael Dick made changes -
          Fix Version/s 2.2.0 [ 12315910 ]
          Fix Version/s 2.1.0 [ 12314542 ]
          Donald Woods made changes -
          Fix Version/s 2.1.0 [ 12314542 ]
          Fix Version/s 2.0.0 [ 12314019 ]
          Pinaki Poddar made changes -
          Affects Version/s 2.0.0 [ 12314019 ]
          Donald Woods made changes -
          Fix Version/s 2.0.0 [ 12314019 ]
          Fix Version/s 2.0.0-M1 [ 12313624 ]
          Pinaki Poddar made changes -
          Original Estimate 672h [ 2419200 ]
          Remaining Estimate 672h [ 2419200 ]
          Issue Type Improvement [ 4 ] New Feature [ 2 ]
          Pinaki Poddar made changes -
          Link This issue is related to OPENJPA-1009 [ OPENJPA-1009 ]
          Pinaki Poddar made changes -
          Link This issue is related to OPENJPA-1010 [ OPENJPA-1010 ]
          Pinaki Poddar made changes -
          Field Original Value New Value
          Link This issue is part of OPENJPA-1007 [ OPENJPA-1007 ]
          Pinaki Poddar created issue -

            People

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

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 672h
                672h
                Remaining:
                Remaining Estimate - 672h
                672h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development