Torque uses a single XML database schema to generate the SQL for your target database and Torque's Peer-based object relation model representing your XML database schema. Additionally, an HTML document describing the database can be generated if you wish to make a browseable version of the database schema.
Torque offers a Maven plugin (maven-plugin) that can be used to invoke the generator.
Torque also offers an Ant build
file (build-torque.xml
) which could be added to your
project. It defines the following targets:
The following tasks are available as both Ant tasks
(ant @task@
) and, after installing maven-plugin as
Maven goals (maven torque:@task@
):
The OJB support is new and will be enhanced in future versions.