Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1622

Invoking MetaModel generator

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0, 2.0.1, 2.1.0
    • 2.0.0
    • None

    Description

      1. Use service discovery mechanism to invoke annotation processor for metamodel generation
      2. Provide a activation switch -Aopenjpa.generate=true such that the user must enable the switch to generate these metamodel classes besides having openjpa.jar in classpath.

      Target usage patterns

      A. Using command lines

      $ javac -cp /path/to/openjpa.jar -Aopenjpa.generate=true src/org/acme/Foo.java

      B. Using Eclipse IDE
      In 'Configure Annotation Processor Dialog'
      – set openjpa.generate to 'true'
      – include openjpa jar in factory path

      C. Using Ant
      <javac .....
      <classpath refid="openjpa.jar"/>
      <compilerarg value="-Aopenjpa.generate=true"/>
      </javac>

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ppoddar@apache.org Pinaki Poddar
            ppoddar@apache.org Pinaki Poddar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment