...
This command-line utility translates proprietary mapping descriptors to standard JPA mapping descriptors.
Download
The latest OpenJPA Tools JAR file can be download from the SNAPSHOT Repository or can be built from the source code in svn by using Maven 2.2.1 and Java SE 6.
Usage:
Code Block |
---|
$ java org.apache.openjpa.tools.MigrationTool -input xyz.xml [-output xyz.orm.xml |
...
] [-actions migration-actions.xml] [-verbose true] |
where
-input | input location of the proprietary XML mapping descriptor resource. The resource is looked up in the current classpath. If not located as a resource, then looked up as an input file in relative to the current directory. This option is mandatory | ||
-output | output location of the translated mapping descriptor file. This option is not mandatory. If unspecified, the output is simply printed on the standard console. | -error | output location of the non-translatable attributes or elements. Adding a + sign at the end of the file name will append the warning messages to an existing file. This option is not mandatory. If unspecified, the output is printed on the standard error console. |
-actions | the actions to be performed on every element of the input descriptor elements. These actions are specified as XML elements compliant to a XML schema. A template of these actions for a subset of Hibernate elements is included in migration-actions.xml. | ||
-verbose | prints detailed trace of what the tool is doing. This option is not mandatory. If unspecified, detailed messages are not printed. |
...