openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r932507 - in /openjpa/trunk: openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java openjpa-project/src/doc/manual/jpa_overview_criteria.xml
Date Fri, 09 Apr 2010 16:51:09 GMT
Author: ppoddar
Date: Fri Apr  9 16:51:08 2010
New Revision: 932507

URL: http://svn.apache.org/viewvc?rev=932507&view=rev
Log:
OPENJPA-1622: Support discovery. But hide by default. Add boolean flag -Aopenjpa.generate
to activate

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
    openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_criteria.xml

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java?rev=932507&r1=932506&r2=932507&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
Fri Apr  9 16:51:08 2010
@@ -63,7 +63,7 @@ import org.apache.openjpa.persistence.ut
  * This tool is invoked during compilation for JDK6 compiler if 
  * <UL>
  * <LI>OpenJPA and JPA libraries are available in the compiler classpath
- * and <LI>Annotation Processor option <code>-Aopenjpa.generated=true</code>
is specified.
+ * and <LI>Annotation Processor option <code>-Aopenjpa.generate=true</code>
is specified.
  * </UL>
  * <br>
  * <B>Usage</B><br>

Modified: openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_criteria.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_criteria.xml?rev=932507&r1=932506&r2=932507&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_criteria.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_criteria.xml Fri Apr  9 16:51:08
2010
@@ -167,9 +167,10 @@ List result = query.getResultList();    
 Annotation processing tool generates source code for a metamodel class given 
 the annotated source code of persistent entity. 
 This tool is invoked during compilation for JDK6 compiler if OpenJPA and JPA 
-libraries are specified in the compiler <code>-processorpath</code> option.
+libraries are specified in the compiler <code>-classpath</code> option <emphasis>and</emphasis>
+Annotation processor option <code>-Aopenjpa.generate=true</code> is specified.
     <programlisting>
- $ javac -processor org.apache.openjpa.persistence.meta.AnnotationProcessor6 -processorpath
path/to/openjpa-all.jar mypackage/MyEntity.java
+ $ javac -classpath path/to/openjpa-all.jar -Aopenjpa.generate=true mypackage/MyEntity.java
     </programlisting>
 will generate source code for canonical meta-model class <code>mypackage.MyEntity_.java</code>.
       </para>



Mime
View raw message