mirror of https://github.com/apache/openjpa.git
OPENJPA-1712 add missing license header
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@986326 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5e38145fa1
commit
aa2cbe7623
|
@ -1,35 +1,41 @@
|
||||||
Metamodel generator (mmg)
|
Apache OpenJPA - Metamodel generator (mmg) README
|
||||||
|
Licensed under Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
JPA 2.0 provides an utility to generate canonical metamodel for each persistent domain entity.
|
JPA 2.0 provides an utility to generate canonical metamodel for each persistent
|
||||||
This brief note describes how to generate these canonical metamodel classes.
|
domain entity. This brief note describes how to generate these canonical
|
||||||
|
metamodel classes.
|
||||||
|
|
||||||
The canonical metamodel classes are generated during compilation of persistent domain entity classes.
|
The canonical metamodel classes are generated during compilation of persistent
|
||||||
The generation process depends on Annotation Processing facility available in JDK6. Naturally, this
|
domain entity classes. The generation process depends on Annotation Processing
|
||||||
process *only* works if the persistent domain entity classes are compiled with a JDK6 compiler.
|
facility available in JDK6. Naturally, this process *only* works if the
|
||||||
|
persistent domain entity classes are compiled with a JDK6 compiler.
|
||||||
|
|
||||||
Effectively, the process appears to be normal compilation process with a specialized Annotation Processor
|
Effectively, the process appears to be normal compilation process with a
|
||||||
|
specialized Annotation Processor:
|
||||||
|
|
||||||
$ javac -classpath %CLASSPATH% <javac options> <mmg options> <*.java source files>
|
$ javac -classpath %CLASSPATH% <javac options> <mmg options> <*.java source files>
|
||||||
|
|
||||||
|
|
||||||
Compiler Classpath
|
Compiler Classpath
|
||||||
------------------
|
------------------
|
||||||
The compiler classpath must include OpenJPA libraries.
|
The compiler classpath must include OpenJPA libraries.
|
||||||
|
|
||||||
mmg options
|
mmg options
|
||||||
-----------
|
-----------
|
||||||
These options specify the Annotation processor to be used as well as options for the processor. The only mandatory
|
These options specify the Annotation processor to be used as well as options
|
||||||
option is
|
for the processor. The only mandatory option is:
|
||||||
-processor org.apache.openjpa.persistence.meta.AnnotationProcessor6
|
-processor org.apache.openjpa.persistence.meta.AnnotationProcessor6
|
||||||
|
|
||||||
The other options qualify the Annotation processor itself and specified with -A<option>=<value> syntax
|
The other options qualify the Annotation processor itself and specified
|
||||||
|
with -A<option>=<value> syntax:
|
||||||
|
|
||||||
-Alog log level. Permissible values are TRACE, INFO and WARN.
|
-Alog log level. Permissible values are TRACE, INFO and WARN.
|
||||||
Default is INFO.
|
Default is INFO.
|
||||||
-Aout the directory location of the generated canonical model source output files.
|
-Aout the directory location of the generated canonical model source output
|
||||||
Default is the current directory.
|
files. Default is the current directory.
|
||||||
-Asource compatibility level of the generated canonical model source code. Permissible values are 5 and 6.
|
-Asource compatibility level of the generated canonical model source code.
|
||||||
Default is 6.
|
Permissible values are 5 and 6. Default is 6.
|
||||||
-Aheader flags if a header is created for the generated source code. Permissible values are true and false.
|
-Aheader flags if a header is created for the generated source code.
|
||||||
Default is true.
|
Permissible values are true and false. Default is true.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue