<?xml version="1.0" encoding="UTF-8"?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
-->

<document>
  <properties>
    <title>Apache Torque</title>
    <author email="jvanzyl@apache.com">Jason van Zyl</author>
    <author email="mpoeschl@marmot.at">Martin Poeschl</author>
    <author email="seade@backstagetech.com.au">Scott Eade</author>
    <author email="hps@intermeta.de">Henning P. Schmiedehausen</author>
    <author email="fischer@seitenbau.de">Thomas Fischer</author>
  </properties>

  <body>
   <!-- source>
   Please see the <a href="status.html">News and Status Page</a> for
   information about a Maven 1.0.x repository change.</source -->
   <section name="What is Torque?">
     <p>
       Apache Torque is an object-relational mapper for java.  In other words, Torque
       lets you access and manipulate data in a relational database 
       using java objects.
       Unlike most other object-relational mappers, Torque does not use
       reflection to access user-provided classes, but it generates the
       necessary classes (including the Data Objects) from an XML schema
       describing the database layout (which can either be written by hand
       or generated from an existing database).
       The XML schema can also be used to generate and execute a SQL script
       which creates all the tables in the database.
     </p>
     
     <p>
       As Torque hides database-specific implementation details, 
       Torque makes an application independent of a specific database
       if no exotic features of the database are used.
     </p>
     
     <p>
       Usage of autogeneration eases the customization of the database layer, 
       as you can override the autogenerated methods and thus easily change
       their behaviour.
     </p>

     <p>
       Torque was developed as part of the
       <a href="http://turbine.apache.org/">Turbine Framework</a>.
       It is now decoupled and can be used by itself. Starting with version
       2.2 Turbine uses the decoupled Torque.
     </p>
   </section>

   <section name="Elements of Torque">
    <p>
     Torque consists of multiple parts:
     <dl>
       <dt>runtime</dt>
       <dd>
        The Torque runtime contains everything to allow an
        application to access the database.  It is the only component of Torque
        needed in your application and can be used standalone.
       </dd>
       <dt>generator</dt>
       <dd>
         The generator contains ant tasks which do all the work for the 
         Maven plugin.  If you use the Maven plugin, you do not need to use the 
         generator directly.
         However, the generator can also be invoked directly using ant.
       </dd>
       <dt>maven-plugin</dt>
       <dd>
        The Maven plugin creates the O/R peer and object classes for accessing
        and storing data from the database.  It can also generate the XML
        description of an existing database and (in reverse) create an SQL 
        script to create the tables in the database.  Internally, 
        the Maven plugin uses the generator to accomplish these tasks.
       </dd>
       <dt>templates</dt>
       <dd>
         The templates contain the building blocks used by the generator 
         to create the O/R peer and object classes, SQL scripts and the like.
         You can change the templates if you want to customize the output 
         of the generator (this is only necessary in very special 
         circumstances).
         Up to release 3.1.x, the templates were a part of the generator.
         Starting with the 3.2 release of Torque, the templates have been 
         separated into their own jar archive.
       </dd>
       <dt>village</dt>
       <dd>
         Village is a 100% Pure Java API that sits on top of the JDBC
         API. The purpose of this API is to make it easier to interact with
         a JDBC compliant relational database.
       </dd>
     </dl>
    </p>
   </section>

   <section name="Releases">
    <p>
     <ul>
      <li>
        Most recent <i>production</i> release of Torque is Torque 3.3
      </li>
      <li>
        Most recent <i>production</i> release of the Village component of Torque is Village 3.3.1
      </li>
      <li>
        Most recent <i>development</i> release of Torque is <a href="releases/torque-4.0/download.html">Torque 4.0-beta1</a>
      </li>
     </ul>
    </p>
   </section>
   
   <section name="The Apache Software Foundation">
     <p>
      Torque is an <a href="www.apache.org">Apache</a> project,
      and is part of a larger community of developers and users.
     </p>
     <p>
      Apache Torque, Torque, Apache, the Apache feather logo,
      and the Apache Torque project logo are trademarks of 
      <a href="www.apache.org">The Apache Software Foundation</a>.
     </p>
   </section>
  </body>
</document>
