Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 13111 invoked from network); 24 Aug 2005 12:39:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2005 12:39:19 -0000 Received: (qmail 21896 invoked by uid 500); 24 Aug 2005 12:39:18 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 21796 invoked by uid 500); 24 Aug 2005 12:39:17 -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 21712 invoked by uid 500); 24 Aug 2005 12:39:16 -0000 Received: (qmail 21684 invoked by uid 99); 24 Aug 2005 12:39:16 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 24 Aug 2005 05:39:10 -0700 Received: (qmail 13023 invoked by uid 65534); 24 Aug 2005 12:39:10 -0000 Message-ID: <20050824123910.13021.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r239636 [4/4] - in /db/torque/runtime/trunk: ./ conf/ src/conf/ src/java/org/apache/torque/ src/java/org/apache/torque/adapter/ src/java/org/apache/torque/avalon/ src/java/org/apache/torque/dsfactory/ src/java/org/apache/torque/manager/ src... Date: Wed, 24 Aug 2005 12:38:54 -0000 To: torque-commits@db.apache.org From: henning@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: db/torque/runtime/trunk/xdocs/status.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/status.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/status.xml (original) +++ db/torque/runtime/trunk/xdocs/status.xml Wed Aug 24 05:38:09 2005 @@ -47,20 +47,20 @@ Added support for outer joins
  • - Added support for creation of simple java beans + Added support for creation of simple java beans from persistent objects
  • - The old connection pool is removed + The old connection pool is removed (only dbcp is supported out of the box)
  • Some smaller changes were made in the database.dtd -
  • +
  • - The build-torque ant file for the generator + The build-torque ant file for the generator is contained again in the generator release -
  • + You can obtain the Torque 3.2-rc1 generator, runtime and maven-plugin from our Download @@ -97,26 +97,26 @@

    - A problem handling limit and offset has been corrected. You can + A problem handling limit and offset has been corrected. You can obtain the Torque 3.1.1-rc2 generator, runtime and maven-plugin from - the ibiblio maven + the ibiblio maven repository.

    - We are working on setting up the mirrored download page for 3.1.1 + We are working on setting up the mirrored download page for 3.1.1 final. In the mean time you can obtain the Torque 3.1.1-rc1 generator, runtime and maven-plugin from the - ibiblio maven + ibiblio maven repository.

    - Farewell to + Farewell to Martin Pöschl.

    @@ -153,7 +153,7 @@

    Downloads are available here.
    - This is a bugfix release. The docs including a full list of changes is available + This is a bugfix release. The docs including a full list of changes is available here

    @@ -162,7 +162,7 @@

    Downloads are available here.
    - This is a bugfix release. The docs including a full list of changes is available + This is a bugfix release. The docs including a full list of changes is available here

    Modified: db/torque/runtime/trunk/xdocs/sybase-howto.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/sybase-howto.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/sybase-howto.xml (original) +++ db/torque/runtime/trunk/xdocs/sybase-howto.xml Wed Aug 24 05:38:09 2005 @@ -27,9 +27,9 @@

    This HOWTO was written some time ago and was targeted at the -version of Torque that was coupled with the +version of Torque that was coupled with the Turbine application framework. -Contributions towards updating the information below can be submitted to the +Contributions towards updating the information below can be submitted to the Torque Dev mailing list.

    @@ -39,7 +39,7 @@

    This text is a description of integration of Sybase ASE as the target -database in a TDK generated application. +database in a TDK generated application.

    @@ -48,7 +48,7 @@

    Sybase has a pure java jdbc driver, jConnect, that is free to use, but not -open source. You may download this driver from +open source. You may download this driver from Sybase.

    @@ -77,7 +77,7 @@ The .sql files that the TDK build process generates files with the sql command terminated by a ; for use in the sql directive provided by the Ant build system. These scripts will not work properly if run by -hand via the 'isql' command. +hand via the 'isql' command.
  • The .sql files to create the tables, do not correctly remove any Modified: db/torque/runtime/trunk/xdocs/tutorial/index.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/tutorial/index.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/tutorial/index.xml (original) +++ db/torque/runtime/trunk/xdocs/tutorial/index.xml Wed Aug 24 05:38:09 2005 @@ -42,17 +42,17 @@

    - In this tutorial, it is assumed that you have experience + In this tutorial, it is assumed that you have experience in programming in Java, and that you have some experience using JDBC (e.g. you should know what a jdbc driver and a connection URL is). - Although Maven - is heavily used in this tutorial, it is not assumed that + Although Maven + is heavily used in this tutorial, it is not assumed that you have any experience in using it.

    - For each step in the tutorial, user comments are available + For each step in the tutorial, user comments are available in the Torque Wiki, see the links at the bottom of each page. @@ -62,28 +62,28 @@

    - If you are using Torque for the first time, you should + If you are using Torque for the first time, you should stick very closely to the example provided in the Tutorial, - and get the sample application running as is. - If you play around, there are quite a few places where + and get the sample application running as is. + If you play around, there are quite a few places where things can go wrong, and is not always clear why they go wrong. Errors are much easier to find when you can pinpoint - the source of the error by + the source of the error by "Ok, it went wrong when I changed foo".
    - Once you got a running example, you can (and should) still - play around to see whether Torque can satisfy your particular + Once you got a running example, you can (and should) still + play around to see whether Torque can satisfy your particular needs.

    The example used throughout this tutorial is based on an - email sent to the turbine-user mailing list by + email sent to the turbine-user mailing list by Steven F. Davis called torque outside turbine - detailed example (long). It has subsequently been updated for Turbine 3.1 which separates the generator from - the runtime and provides a + the runtime and provides a maven-plugin for executing the generator using Maven. @@ -101,7 +101,7 @@

    User comments - for the tutorial as a whole and this page + for the tutorial as a whole and this page
    Modified: db/torque/runtime/trunk/xdocs/tutorial/step1.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/tutorial/step1.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/tutorial/step1.xml (original) +++ db/torque/runtime/trunk/xdocs/tutorial/step1.xml Wed Aug 24 05:38:09 2005 @@ -32,15 +32,15 @@
  • The generator generates your persistence classes from an xml description of the database. It also generates and executes - sql scripts to create all the necessary tables, constraints etc. - in your database. - The generator comes packaged in two jars: The templates in + sql scripts to create all the necessary tables, constraints etc. + in your database. + The generator comes packaged in two jars: The templates in torque-gen-templates.jar, and the rest in torque-gen.jar.
  • - The maven plugin integrates the generator into - Maven, a software - project management tool. In other words, the maven plugin is + The maven plugin integrates the generator into + Maven, a software + project management tool. In other words, the maven plugin is a frontend for the generator.
  • @@ -48,22 +48,22 @@ to work properly.
  • - For this tutorial, we will be using the maven plugin for Torque 3.2.x + For this tutorial, we will be using the maven plugin for Torque 3.2.x (which will silently invoke the generator) to - generate our object model classes and sql scripts. For working with the + generate our object model classes and sql scripts. For working with the generated classes, we will use the Torque 3.2.x runtime for our sample application.

    - If you have not already done so, download and install - Maven. It is highly recommended to use + If you have not already done so, download and install + Maven. It is highly recommended to use version 1.0.2 of Maven.

    Maven uses the ibiblio maven repository - to download any libraries and resources it needs. From there, obtain the Torque + to download any libraries and resources it needs. From there, obtain the Torque maven plugin by typing

    @@ -72,8 +72,8 @@ ]]>

    - You do not need to download the generator or the - runtime separately. Maven will download them from + You do not need to download the generator or the + runtime separately. Maven will download them from the ibiblio distribution site automatically when they are needed.

    Modified: db/torque/runtime/trunk/xdocs/tutorial/step2.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/tutorial/step2.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/tutorial/step2.xml (original) +++ db/torque/runtime/trunk/xdocs/tutorial/step2.xml Wed Aug 24 05:38:09 2005 @@ -42,18 +42,18 @@ create/edit the Torque generator properties file (which is providing the generator with the necessary information) - and the Torque database schema file(s) + and the Torque database schema file(s) (which contain the structure of your database). Each of these files is covered in the following sections.

    - As a starting point, create a directory as a - base directory for your project (also called + As a starting point, create a directory as a + base directory for your project (also called the project's top level directory), and change into that directory. - All the paths in the following steps will be + All the paths in the following steps will be relative to this base directory.

    @@ -65,9 +65,9 @@ The Torque generator literally generates Java source/class files representing your object model, SQL statements for your specific database, and - documentation. + documentation. You configure the generator by setting properties in the - project.properties file in root directory of your + project.properties file in root directory of your project. As a starting point, use the following template and edit it to reflect your specific needs

    @@ -82,7 +82,7 @@ # The target package to put the generated classes in. torque.targetPackage = com.kazmier.om - # The JDBC URL that Torque can use to create and + # The JDBC URL that Torque can use to create and # drop databases if instructed to do so. torque.database.createUrl = jdbc:mysql://127.0.0.1/mysql @@ -95,7 +95,7 @@ # The JDBC database driver to use when connecting to your database. torque.database.driver = org.gjt.mm.mysql.Driver - # The administrative username that has sufficient privileges to create + # The administrative username that has sufficient privileges to create # and drop databases and tables that Torque executes at generation time. torque.database.user = adminuser @@ -117,7 +117,7 @@

    For a reference as to what each property, and others, controls, please - see the properties + see the properties reference for the Torque generator.

    @@ -128,8 +128,8 @@

    The second file that you must edit to configure Torque is the database schema. The database schema - is an XML file that represents the structure of your - SQL database in Torque. + is an XML file that represents the structure of your + SQL database in Torque. This is where you define all of your tables, column names and types, as well as the keys used to index these tables. @@ -153,7 +153,7 @@

    - In this tutorial, we will use a simple + In this tutorial, we will use a simple database that might be used to support a bookstore application. The database will contain three tables: author, publisher, and book. The first @@ -163,9 +163,9 @@ table will contain book information (title, and ISBN). The author id and publisher id will be foreign keys in the book table. The schema - representation for this database is stored - in the file project-schema.xml, which should - be created in the src/schema directory + representation for this database is stored + in the file project-schema.xml, which should + be created in the src/schema directory and contain the following:

    @@ -335,7 +335,7 @@

    To initialize the IDBroker service, create a file - called id-table-schema.xml in the + called id-table-schema.xml in the src/schema subdirectory of your project's base directory. It should have the following contents:

    @@ -372,7 +372,7 @@

    Note that again, the name attribute to the database element has the same value as in the - project-schema.xml. + project-schema.xml.

    @@ -388,8 +388,8 @@

    - That completes the configuration of the Torque generator. - You are now ready to start building your object model + That completes the configuration of the Torque generator. + You are now ready to start building your object model and creating your database.

    Modified: db/torque/runtime/trunk/xdocs/tutorial/step3.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/tutorial/step3.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/tutorial/step3.xml (original) +++ db/torque/runtime/trunk/xdocs/tutorial/step3.xml Wed Aug 24 05:38:09 2005 @@ -37,11 +37,11 @@

    - Note: If you are yet to jump aboard the Maven ship you can - download the torque-gen archive and make use of the Ant build + Note: If you are yet to jump aboard the Maven ship you can + download the torque-gen archive and make use of the Ant build file build-torque.xml contained therein. Some hints - about this can be found in the - User Guide. + about this can be found in the + User Guide.

    @@ -85,9 +85,9 @@

    - The generated Java classes are located in the - src/java directory and will be in a - directory hierarchy matching that of the + The generated Java classes are located in the + src/java directory and will be in a + directory hierarchy matching that of the torque.targetPackage you specified in project.properties. These are the files that will be compiled into your @@ -95,8 +95,8 @@

    - The generated SQL files are located in the - target/sql directory. + The generated SQL files are located in the + target/sql directory. For each database schema in your src/schema directory, there will be a corresponding file with a .sql extension @@ -108,11 +108,11 @@

    To change the directory where the classes are generated, - use the properties torque.home, + use the properties torque.home, torque.output.dir and/or torque.java.dir in your project.properties file - see - the properties + the properties reference for more detail).

    @@ -137,7 +137,7 @@ defined in project.properties) is in your classpath so that Torque can connect to your database and execute the generated SQL commands. - The easiest way to accomplish this is to add the + The easiest way to accomplish this is to add the database driver jar to your local maven repository, and specify it as a dependency in your project. This is done as follows: @@ -146,11 +146,11 @@

    - For licensing reasons, most database drivers cannot + For licensing reasons, most database drivers cannot be downloaded automatically by maven. Therefore, - you have to add the driver manually to your local maven + you have to add the driver manually to your local maven repository. The local maven repository - is located by default in the directory + is located by default in the directory %HOMEDRIVE%%HOMEPATH%\.maven\repository in windows, and $HOME/.maven/repository in linux/unix. Change into that direcory and @@ -158,7 +158,7 @@ where ${groupId} is typically set to the name of the database (for example, use mysql/jars for mysql). - Then, download the database driver, and copy the + Then, download the database driver, and copy the driver jar to the subdirectory you just created.

    @@ -167,14 +167,14 @@

    - The dependencies of a project are specified - in a file named project.xml in the + The dependencies of a project are specified + in a file named project.xml in the top level directory of your project. (This is not the only use of this file, - see the + see the maven getting started guide - and the + and the Maven Project descriptor reference for more information.) @@ -182,9 +182,9 @@

    If you did not create a project.xml file yet, - create it in the top level directory of your project + create it in the top level directory of your project and fill it using the following template. (If you - already have a project.xml, + already have a project.xml, just add the dependency.)

    @@ -207,25 +207,25 @@ ]]>

    - Replace the variables ${driverJarName}, - ${databaseName}, and ${driverVersion} by the values - needed to locate the driver jar. These variable + Replace the variables ${driverJarName}, + ${databaseName}, and ${driverVersion} by the values + needed to locate the driver jar. These variable must be chosen such that using the path - ${repo}/${groupId}/${type}s/${artifactId}-${version}.${type} + ${repo}/${groupId}/${type}s/${artifactId}-${version}.${type} points to the driver jar you copied into the local maven repository. - Here, ${repo} is the path to the - local maven repository, ${type} is set to - jar by default, and the other variables + Here, ${repo} is the path to the + local maven repository, ${type} is set to + jar by default, and the other variables are set in the project.xml. If the name of the driver jar cannot be expressed as - ${artifactId}-${version}.${type}, rename + ${artifactId}-${version}.${type}, rename the driver jar in yor local maven repository.

    For example, if the downloaded driver was put into the local - repository as + repository as mysql/jars/mysql-connector-java-3.1.6-bin.jar, ${artifactId} would be set to mysql-connector-java, @@ -258,22 +258,22 @@ ]]>

    - Note that creating the database might not work + Note that creating the database might not work for some databases at all (e.g. oracle). - Also, for other databases (e.g. mysql), - the database user must be database administrator + Also, for other databases (e.g. mysql), + the database user must be database administrator to be able to create the database, and often (e.g. mysql, postgresql), one must connect to a database which is different from the database - which one wants to create (this is why there are - different properties + which one wants to create (this is why there are + different properties torque.database.createUrl and torque.database.buildUrl - in the project.properties + in the project.properties for creating the database and the tables, - respectively).
    - If you encounter problems in this step, - you might want to skip it + respectively).
    + If you encounter problems in this step, + you might want to skip it and create the database manually.

    Modified: db/torque/runtime/trunk/xdocs/tutorial/step4.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/tutorial/step4.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/tutorial/step4.xml (original) +++ db/torque/runtime/trunk/xdocs/tutorial/step4.xml Wed Aug 24 05:38:09 2005 @@ -27,18 +27,18 @@

    - Before we can start to write a Torque application, we have to + Before we can start to write a Torque application, we have to configure the runtime environment:

    • - We have to make sure that the generated - object model classes have access to the Torque + We have to make sure that the generated + object model classes have access to the Torque runtime and associated libraries.
    • The Torque runtime needs a configuration file - in order to retrieve the data which is necessary - to connect to the database. + in order to retrieve the data which is necessary + to connect to the database.
    These two steps will be covered in the following sections. @@ -46,14 +46,14 @@
    -
    - +
    +

    - The libraries which the generated classes depend on + The libraries which the generated classes depend on are specified in the file project.xml in the top level directory of the project. - You already created this file in step 3 of the - tutorial; now it needs to be extended a bit. + You already created this file in step 3 of the + tutorial; now it needs to be extended a bit. Assuming that you use JDK 1.4+, you need to add the following entries to the <dependencies> section of your project.xml @@ -124,7 +124,7 @@ village 2.0-dev-20030825 - + xercesImpl xerces @@ -136,19 +136,19 @@ xml-apis 2.0.2 - + ]]>

    - You need not download any of these libraries - - Maven will download them automatically when you + You need not download any of these libraries - + Maven will download them automatically when you build your project.

    Note: There is no need to include the torque-gen jar file in your project - classpath, including it may adversly affect the logging configuration of + classpath, including it may adversly affect the logging configuration of your application.

    @@ -158,7 +158,7 @@

    - The second step in the configuration of the + The second step in the configuration of the Torque Runtime are the Torque run-time properties. As the name suggests, these properties are used when your application is @@ -172,11 +172,11 @@

    - We will save our runtime properties in the + We will save our runtime properties in the a file called torque.properties. Create a subdirectory src/conf in the top-level directory of your project, and create - a new file called torque.properties + a new file called torque.properties in it. Add the following lines to this file:

    @@ -273,23 +273,23 @@

    - Torque uses + Torque uses commons-logging as a logging interface. - To enable logging in your application, read the + To enable logging in your application, read the commons-logging user guide.

    - +

    If you have no trouble running the tutorial, you do not need to configure logging now. If, however, - you experience runtime errors later on - and do not find the reason immediately, - it might be a good idea to configure - logging and look at the log messages. Also, for a - "serious" application, logging is - indispensible in order to track down any + you experience runtime errors later on + and do not find the reason immediately, + it might be a good idea to configure + logging and look at the log messages. Also, for a + "serious" application, logging is + indispensible in order to track down any unexpected errors.

    Modified: db/torque/runtime/trunk/xdocs/tutorial/step6.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/tutorial/step6.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/tutorial/step6.xml (original) +++ db/torque/runtime/trunk/xdocs/tutorial/step6.xml Wed Aug 24 05:38:09 2005 @@ -33,10 +33,10 @@ Now that you've generated your object model with Torque, and created a sample application, you are now ready to compile everything. Again, Maven is used - to control the build process. + to control the build process.

    - First, we need to tell maven where the java source + First, we need to tell maven where the java source files are located. To do this, add the following section just after the <dependencies> of your project.xml which you created sooner on in the @@ -49,9 +49,9 @@ ]]> -

    +

    Afterwards, you can compile your jave source files - by typing the following in the top-level directory + by typing the following in the top-level directory of your project:

    @@ -64,8 +64,8 @@ build without any errors. All of the resulting Java class files are placed in the target/classes directory. If the compiler - misses any external libraries, review the - <dependencies> section in your + misses any external libraries, review the + <dependencies> section in your project.xml. Should you encounter other errors, go back and review your application code. @@ -83,22 +83,22 @@ jars denoted in the <dependencies> section of your project.xml, and all of your application and object model classes located in - target/classes. + target/classes.

    - Before compiling your application, + Before compiling your application, maven will have downloaded all libraries your project depends on to the local maven repository. Gathering them from there is a cumbersome process. - To ease copying them into one place, we modify + To ease copying them into one place, we modify Maven's build process a little. For this, you need to create a new file called - maven.xml in the top-level directory - of your project. It needs to have the + maven.xml in the top-level directory + of your project. It needs to have the following content:

    - + @@ -119,15 +119,15 @@ ]]>

    - Now change into the target directory. In addition - to the classes subdirectory which was + Now change into the target directory. In addition + to the classes subdirectory which was already created in the first compilation run, you see that maven has generated an additional - lib directory which contains the needed + lib directory which contains the needed libraries, and that maven also copied the Torque.properties file here.

    - +

    Now everything is in one place, and you can start the application by typing @@ -176,7 +176,7 @@ Booklist (should be empty): ]]> - +

    If your application throws an exception, it could be for one of many reasons, most of which are not very Modified: db/torque/runtime/trunk/xdocs/user-guide.xml URL: http://svn.apache.org/viewcvs/db/torque/runtime/trunk/xdocs/user-guide.xml?rev=239636&r1=239635&r2=239636&view=diff ============================================================================== --- db/torque/runtime/trunk/xdocs/user-guide.xml (original) +++ db/torque/runtime/trunk/xdocs/user-guide.xml Wed Aug 24 05:38:09 2005 @@ -63,14 +63,14 @@ Torque consists of two main components:

    • - Generator - The Torque generator uses a single XML - database schema file to generate the SQL for your target database and - Torque's Peer-based object relational model. The generator can be - executed using the Torque maven-plugin or + Generator - The Torque generator uses a single XML + database schema file to generate the SQL for your target database and + Torque's Peer-based object relational model. The generator can be + executed using the Torque maven-plugin or an Ant build file.
    • - Runtime - The Torque runtime is required in order to + Runtime - The Torque runtime is required in order to compile and use of the classes produced by the generator.
    @@ -83,10 +83,10 @@

    - If you have not already done so, download and install - Maven. You then need to obtain the - Torque maven plugin. The Maven Howto - includes details of how to build the maven plugin from source, but you can + If you have not already done so, download and install + Maven. You then need to obtain the + Torque maven plugin. The Maven Howto + includes details of how to build the maven plugin from source, but you can easily install a binary distribution thus:

    @@ -100,26 +100,26 @@

    - If you prefer to use Ant you need access - to the Torque generator distribution and associated libraries - these are - available from the + If you prefer to use Ant you need access + to the Torque generator distribution and associated libraries - these are + available from the - Downloads page (the file to download is torque-gen-3.2-rc1.tar.gz or + Downloads page (the file to download is torque-gen-3.2-rc1.tar.gz or torque-gen-3.2-rc1.zip, depending on your development platform). Unpack the archive to reveal the following directory structure:

    torque.useClasspath to - false + jar containing the templates. If you want to + modify the templates, you can unpack the + templates jar, set the + torque.useClasspath to + false and the torque.schema.dir to the correct directory in the build.properties @@ -127,7 +127,7 @@ IDBroker. build.properties <--- The various properties that you use to configure the Torque generator. - build-torque.xml <--- The Ant build file containing the various torque + build-torque.xml <--- The Ant build file containing the various torque goals. default.properties <--- The default property values that are used to configure the Torque generator. @@ -137,10 +137,10 @@ ]]>

    - The instructions below are targeted towards using the Torque maven-plugin. - If you are using Ant the instructions are basically the same, but instead of + The instructions below are targeted towards using the Torque maven-plugin. + If you are using Ant the instructions are basically the same, but instead of using project.properties you use build.properties - and instead of using maven torque:${goal-name} you use + and instead of using maven torque:${goal-name} you use ant -f build-torque.xml ${target-name}.

    @@ -149,10 +149,10 @@

    - At runtime the generated object model classes need access to the Torque + At runtime the generated object model classes need access to the Torque runtime distribution and associated libraries - these are available from the - Downloads page (the file to download is torque-3.1.1.tar.gz or + Downloads page (the file to download is torque-3.1.1.tar.gz or torque-3.1.1.zip, depending on your development platform). We will cover what to do with this file in a later step.

    @@ -270,9 +270,9 @@

    - The runtime distribution archive includes an Ant build file that can be used + The runtime distribution archive includes an Ant build file that can be used to generate your Torque runtime configuration - see the Torque - tutSorial for + tutSorial for details.

    @@ -280,7 +280,7 @@ torque.database.default = my_project torque.database.my_project.adapter = mysql -# Using commons-dbcp +# Using commons-dbcp torque.dsfactory.my_project.factory = org.apache.torque.dsfactory.SharedPoolDataSourceFactory torque.dsfactory.my_project.connection.driver = org.gjt.mm.mysql.Driver torque.dsfactory.my_project.connection.url = jdbc:mysql://localhost:3306/my_project @@ -289,7 +289,7 @@ ]]>

    - The above example uses the commons-dbcp connection pool - see + The above example uses the commons-dbcp connection pool - see Pool-config Howto details of the available DataSource factories.

    @@ -299,12 +299,12 @@

    - In order to be able to compile and use the generated class files it is + In order to be able to compile and use the generated class files it is necessary to include the Torque runtime jar file and jar files for all of - the necessary dependencies in the classpath of your project. The necessary + the necessary dependencies in the classpath of your project. The necessary jars are included in the torque/lib directory of the Torque runtime. If you are using Maven to build your project it may be easiest to - copy the necessary dependencies from the + copy the necessary dependencies from the Torque runtime POM.

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