The wsreversemapping tool generates persistent class definitions and metadata from a database schema.
Before running the command, you must have a copy of persistence.xml file on the classpath, or specify it as a properties file through the -p [path_to_persistence.xml] argument.
The command syntax is as follows:
wsreversemapping.sh [parameters][arguments]
wsreversemapping.bat [parameters][arguments]
For more information, consult the mapping section in the Apache OpenJPA User's Guide.