<?xml version="1.0"?>
<!--
 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>Torque Templates - Database independence</title>
 </properties>

 <body>
  <section name="Database independence">
    <p>
      The generated java code is database independent. 
      This means that you do not have to re-generate the java code
      in order to run it on another database.
      However, there are a few points to observe:
      <ul>
        <li>Not all data types are available on all databases.</li>
        <li>
          Available data types may behave differently on different databases.
          E.g. Oracle's date type contains time information as well,
          in contrast to all other databases.
          
        </li>
        <li>
          The maximum length of table names and column names is different
          between different databases. From current knowledge, table names
          shorter than 27 characters and column names shorter than
          31 characters are safe to use in all databases.
        </li>
      </ul>
    </p>
    <p>
      The generated SQL is database dependent (of course).
    </p>
  </section>
 </body>
</document>
