Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

-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.
This option is not mandatory. The archetype for translating Hibernate mapping descriptor is used as a default.

-verbose

prints detailed trace of what the tool is doing. This option is not mandatory. If unspecified, detailed messages are not printed.

...