Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 41408 invoked from network); 24 Feb 2010 07:09:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 07:09:38 -0000 Received: (qmail 57181 invoked by uid 500); 24 Feb 2010 07:09:38 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 57141 invoked by uid 500); 24 Feb 2010 07:09:38 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 57131 invoked by uid 500); 24 Feb 2010 07:09:37 -0000 Received: (qmail 57127 invoked by uid 99); 24 Feb 2010 07:09:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 07:09:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 07:09:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C920623888DD; Wed, 24 Feb 2010 07:09:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r915703 - /db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/templates/index.xml Date: Wed, 24 Feb 2010 07:09:14 -0000 To: torque-commits@db.apache.org From: tfischer@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100224070914.C920623888DD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tfischer Date: Wed Feb 24 07:09:14 2010 New Revision: 915703 URL: http://svn.apache.org/viewvc?rev=915703&view=rev Log: update template docs: - update module names and ids - add info which source files are processed Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/templates/index.xml Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/templates/index.xml URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/templates/index.xml?rev=915703&r1=915702&r2=915703&view=diff ============================================================================== --- db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/templates/index.xml (original) +++ db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/templates/index.xml Wed Feb 24 07:09:14 2010 @@ -27,34 +27,34 @@

- The torque-gf templates are a set of templates for the torque-gf - code generator to produce code and sql for a given data model. - The data model needs to follow the torque dtd.
+ The torque templates are a set of templates for the torque + generator to produce code and sql for a given data model. + The data model needs to follow the torque dtd (TODO: link to dtd).
In the templates, the different generation goals (om classes, sql, doc...) are organized in different packages. For each generation goal, the correct package needs to be accessed. This is described in detail in the following sections.
- In the following, it is assumed that the maven 2 torque-gf plugin is - used to process the templates. + In the following, it is assumed that the maven 2 torque-generator plugin + is used to process the templates.

- For adding the maven 2 torque-gf plugin to your build, add the following - to your pom.xml: + For adding the maven 2 torque-generator plugin to your build, + add the following to your pom.xml:

org.apache.torque - maven-torque-gf-plugin - 0.2-SNAPSHOT + maven-torque-generator-plugin + 4.0-alpha1-SNAPSHOT ...(see below) org.apache.torque - templates-4-0 - 0.2-SNAPSHOT + torque-templates + 4.0-alpha1-SNAPSHOT @@ -63,7 +63,7 @@

For generating the OM classes, add the following execution to the - executions list of the maven torque-gf plugin: + executions list of the torque-generator plugin:

@@ -84,15 +84,17 @@ ]]>

- Replace ${torque.target.database} with the target databsase type + Replace ${torque.target.database} with the target database type (e.g. mysql, oracle). Replace ${torque.schema.source.dir} with the directory where you put your database schemata (e.g. /src/main/schema). Replace ${torque.target.package} with the base package for your generation, e.g. org.apache.torque.test.

- This will generate the om code in the directories - target/generated-sources and src/main/generated-sources. + This will generate the om code for all source files in the schema + directory ending on -schema.xml, but excluding id-table-schema.xml. + The output will be produced in the directories + target/generated-sources and src/main/generated-java.

@@ -122,13 +124,14 @@ ]]>

- Replace ${torque.target.database} with the target databsase type + Replace ${torque.target.database} with the target database type (e.g. mysql, oracle). Replace ${torque.schema.source.dir} with the directory where you put your database schemata (e.g. /src/main/schema).

- This will generate the sql code in the directory + This will generate the sql code for all source files in the schema + directory ending on -schema.xml; the output goes to the directory target/generated-sql.

@@ -160,21 +163,23 @@ ]]>

- Replace ${torque.target.database} with the target databsase type + Replace ${torque.target.database} with the target database type (e.g. mysql, oracle). Replace ${torque.schema.source.dir} with the directory where you put your database schemata (e.g. /src/main/schema). Replace ${torque.target.package} with the base package for your generation, e.g. org.apache.torque.test.

- This will generate the html documentation in the directory - target/generated-docs. + This will generate the html documentation for all source files + in the schema directory ending on -schema.xml. + The output will be produced in the directory target/generated-docs.

- For generating xdoc documentation for the tables (to be included), - into your maven site, add the following execution to the executions list + For generating xdoc documentation for the tables + (to be included into your maven site), + add the following execution to the executions list of the maven torque-gf plugin:

]]>

- Replace ${torque.target.database} with the target databsase type + Replace ${torque.target.database} with the target database type (e.g. mysql, oracle). Replace ${torque.schema.source.dir} with the directory where you put your database schemata (e.g. /src/main/schema). Replace ${torque.target.package} with the base package for your generation, e.g. org.apache.torque.test.

- This will generate the xdoc documentation in the directory - target/generated-xdocs. You may then want to add the following - configuration to your pom to include this directory in your site: + This will generate the xdoc documentation + for all source files in the schema directory ending on -schema.xml. + The output is produced in the directory target/generated-xdocs. + You may then want to add the following configuration to your pom + to include this directory in your site:

--------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org