Torque's generation tasks
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
that can be used to invoke the generator.
Torque also offers an Ant build
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 (
generates SQL source from an XML schema describing a database
generates simple scripts for creating databases on various
generates data DTD from an XML schema describing a database
dumping data from db into XML
generates SQL source from an XML data file
generates an XML schema of an existing database from JDBC metadata
inserts a SQL file into its designated database
generates an xml schema from an sql schema
generates the Object/Peer/Manager model for Torque.
generates the initialization sql for the id table
The OJB support is new and will be enhanced in future versions.
generates a simple object model for ojb
generates the repository for ojb
generates html or xml documentation for xml schemas