db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/notes sybase-status.txt
Date Sun, 11 May 2003 12:59:08 GMT
mpoeschl    2003/05/11 05:59:08

  Modified:    xdocs    status.xml index.xml mssql-howto.xml
                        schema-reference.xml tutorial.xml
                        properties-reference.xml
               xdocs/tutorial step1.xml step4.xml step3.xml step2.xml
               src/java/org/apache/torque/adapter DBInterbase.java
               src/generator/src/java/org/apache/torque/engine/database/transform
                        DTDResolver.java
               src/java/org/apache/torque Torque.java
               src/rttest test-schema.xml
               notes    sybase-status.txt
  Log:
  - add warning to tutorial to NOT use the CVS tree
    (this one cost me a heck of a LOT of time!)
  - fix several broken links
  - fix many spelling errors
  
  Andreas Mohr
  
  Revision  Changes    Path
  1.6       +1 -1      db-torque/xdocs/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/status.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- status.xml	18 Apr 2003 07:42:42 -0000	1.5
  +++ status.xml	11 May 2003 12:59:07 -0000	1.6
  @@ -12,7 +12,7 @@
       <section name="News and Status">
         <p>
           This document contains the latest news and status regarding the
  -        Torque project.  It is here you'll find announcements related to
  +        Torque project.  It is here that you'll find announcements related to
           Torque.
         </p>
         <p>
  
  
  
  1.22      +1 -1      db-torque/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/index.xml,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- index.xml	26 Mar 2003 19:39:01 -0000	1.21
  +++ index.xml	11 May 2003 12:59:07 -0000	1.22
  @@ -98,7 +98,7 @@
             <td></td>
           </tr>
           <tr>
  -          <td>Mysql</td>
  +          <td>MySQL</td>
             <td>org.gjt.mm.mysql.Driver</td>
             <td>no known problems</td>
             <td><a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a></td>
  
  
  
  1.6       +1 -1      db-torque/xdocs/mssql-howto.xml
  
  Index: mssql-howto.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/mssql-howto.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- mssql-howto.xml	2 Oct 2002 14:41:19 -0000	1.5
  +++ mssql-howto.xml	11 May 2003 12:59:07 -0000	1.6
  @@ -65,7 +65,7 @@
   </p>
   
   </section>
  -<section name="Edit properity files">
  +<section name="Edit property files">
   <p>
   In the ...\WEB-INF\build\build.properties file make sure that;
   </p>
  
  
  
  1.7       +3 -3      db-torque/xdocs/schema-reference.xml
  
  Index: schema-reference.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/schema-reference.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- schema-reference.xml	7 Apr 2003 20:50:22 -0000	1.6
  +++ schema-reference.xml	11 May 2003 12:59:07 -0000	1.7
  @@ -14,8 +14,8 @@
       <p>
         The Torque Database Schema Reference attempts to explain what the
         different elements and attributes are when defining your own database
  -      schema. In addition I will attempt to explain what attributes mean what
  -      in the different databases currently supported.
  +      schema. In addition I will attempt to explain which attributes mean what
  +      in the different databases that are currently supported.
       </p>
      </section>
   
  @@ -175,7 +175,7 @@
          <p>
            The base peer to use when generating the Object Model Peers.
            Unlike baseClass, basePeer should extend BasePeer at some point in the
  -         chain, i.e it needs to be the superclass.
  +         chain, i.e. it needs to be the superclass.
          </p>
        </subsection>
        <subsection name="Element: table">
  
  
  
  1.11      +12 -6     db-torque/xdocs/tutorial.xml
  
  Index: tutorial.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/tutorial.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- tutorial.xml	31 Jan 2003 16:53:27 -0000	1.10
  +++ tutorial.xml	11 May 2003 12:59:07 -0000	1.11
  @@ -50,6 +50,12 @@
     not been released; however, there is a beta version
     <a href="http://jakarta.apache.org/builds/jakarta-turbine/torque/release/">
     available</a>.
  +  Note that for this tutorial, you should NOT use the CVS version
  +  of db-torque instead of the normal release version, since the
  +  Torque CVS tree has a differing directory layout; thus it's unsuitable
  +  for this example (at least if you're a newbie who doesn't know how to
  +  configure the CVS version properly, which is probably true
  +  for most people that are reading this tutorial).
   </p>
   
   <p>
  @@ -112,7 +118,7 @@
     bare minimum to get your first Torque application up
     and running.  However, the <em>build.properties</em>
     file is thoroughly commented, so please refer to it
  -  if you have a question regarding part of the file
  +  if you have a question regarding a part of the file
     that is not covered here.  Make the following
     changes and edit appropriately for your environment.
     The properties are described in the table following
  @@ -174,7 +180,7 @@
     format of <em>name-schema.xml</em> where
     <em>name</em> was the same as the <em>project</em>
     property defined in <em>build.properties</em>;
  -  otherwise, Torque was not be able to find your
  +  otherwise, Torque was not able to find your
     database schema file.  This is no longer the case,
     <em>name</em> is no longer restricted to the project
     name. However, it must end with
  @@ -432,7 +438,7 @@
     for the database schema.  In addition, you must
     include the XML declaration and DTD specification in
     your database schema file.  Failure to do so can
  -  result it errors.
  +  result in errors.
   </p>
   
   <p>
  @@ -529,7 +535,7 @@
   log4j.appender.default.file = ./torque.log
   log4j.appender.default.layout = org.apache.log4j.SimpleLayout
   
  -torque.database.default=bookstore
  +torque.database.default = bookstore
   torque.database.bookstore.driver = org.gjt.mm.mysql.Driver
   torque.database.bookstore.url = jdbc:mysql://127.0.0.1/bookstore
   torque.database.bookstore.username = user
  @@ -1010,7 +1016,7 @@
     table defines a static method called
     <em>doSelect</em> which is used to pull data out of
     the table.  The argument to <em>doSelect</em> is a
  -  <em>Critieria</em> object.  It is this object that
  +  <em>Criteria</em> object.  It is this object that
     specifies the criteria to be used when selecting
     data from the database.  As a result of the query,
     <em>doSelect</em> returns a vector of Data Objects
  @@ -1149,7 +1155,7 @@
     that represents the row by invoking one or more
     mutators and then calling its <em>save</em> method.
     When a mutator is called, the Data Object sets an
  -  internal flag to indicate that its been modified.
  +  internal flag to indicate that it's been modified.
     This flag is checked when <em>save</em> is invoked
     to determine if the Peer's <em>doInsert</em> or
     <em>doUpdate</em> is called to perform the database
  
  
  
  1.8       +3 -3      db-torque/xdocs/properties-reference.xml
  
  Index: properties-reference.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/properties-reference.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- properties-reference.xml	15 Nov 2002 12:10:46 -0000	1.7
  +++ properties-reference.xml	11 May 2003 12:59:07 -0000	1.8
  @@ -152,7 +152,7 @@
     <td><code> torque.database.buildUrl </code></td>
     <td><code> N/A </code></td>
     <td>
  -    The JDBC URL that will be used to access yourdatabase. Torque can use
  +    The JDBC URL that will be used to access your database. Torque can use
       this to create your tables if instructed to do so.  This value should
       reflect the database name specified in the database schema file
       (described in the next section).
  @@ -273,7 +273,7 @@
     <td><code> torque.addTimeStamp </code></td>
     <td><code> true </code></td>
     <td>
  -    If true, Torque true puts time stamps in generated om files.
  +    If true, Torque puts time stamps in generated om files.
     </td>
   </tr>
   <tr>
  @@ -288,7 +288,7 @@
     <td><code> true </code></td>
     <td>
       If true, Torque generates data objects with collection support and
  -    methods to easily retreive foreign key relationships.
  +    methods to easily retrieve foreign key relationships.
     </td>
   </tr>
   <tr>
  
  
  
  1.3       +6 -0      db-torque/xdocs/tutorial/step1.xml
  
  Index: step1.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/tutorial/step1.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- step1.xml	6 Dec 2002 17:35:20 -0000	1.2
  +++ step1.xml	11 May 2003 12:59:07 -0000	1.3
  @@ -13,6 +13,12 @@
     First, you need to obtain the Torque
     <a href="http://jakarta.apache.org/builds/jakarta-turbine/torque/release/">
     distribution</a>.
  +  Note that for this tutorial, you should NOT use the CVS version
  +  of db-torque instead of the normal release version, since the
  +  Torque CVS tree has a differing directory layout; thus it's unsuitable
  +  for this example (at least if you're a newbie who doesn't know how to
  +  configure the CVS version properly, which is probably true
  +  for most people that are reading this tutorial).
   </p>
   
   <p>
  
  
  
  1.3       +1 -1      db-torque/xdocs/tutorial/step4.xml
  
  Index: step4.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/tutorial/step4.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- step4.xml	12 Oct 2002 08:26:52 -0000	1.2
  +++ step4.xml	11 May 2003 12:59:07 -0000	1.3
  @@ -213,7 +213,7 @@
     table defines a static method called
     <em>doSelect</em> which is used to pull data out of
     the table.  The argument to <em>doSelect</em> is a
  -  <em>Critieria</em> object.  It is this object that
  +  <em>Criteria</em> object.  It is this object that
     specifies the criteria to be used when selecting
     data from the database.  As a result of the query,
     <em>doSelect</em> returns a vector of Data Objects
  
  
  
  1.2       +1 -1      db-torque/xdocs/tutorial/step3.xml
  
  Index: step3.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/tutorial/step3.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- step3.xml	28 Sep 2002 01:21:41 -0000	1.1
  +++ step3.xml	11 May 2003 12:59:07 -0000	1.2
  @@ -89,7 +89,7 @@
     than likely a formatting error of your database
     schema file.  Check the format of the file and make
     sure it conforms to the
  -  <a href="/turbine/torque/schema-reference.html">
  +  <a href="../schema-reference.html">
     Torque Schema Reference</a>.
   </p>
   
  
  
  
  1.3       +5 -5      db-torque/xdocs/tutorial/step2.xml
  
  Index: step2.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/tutorial/step2.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- step2.xml	31 Jan 2003 16:53:28 -0000	1.2
  +++ step2.xml	11 May 2003 12:59:07 -0000	1.3
  @@ -49,7 +49,7 @@
     bare minimum to get your first Torque application up
     and running.  However, the <em>build.properties</em>
     file is thoroughly commented, so please refer to it
  -  if you have a question regarding part of the file
  +  if you have a question regarding a part of the file
     that is not covered here.  Make the following
     changes and edit appropriately for your environment.
     The properties are described in the table following
  @@ -72,7 +72,7 @@
   
   <p>
     For a reference as to what each property, and others, controls, please
  -  see the <a href="properties-reference.html">properties reference</a>.
  +  see the <a href="../properties-reference.html">properties reference</a>.
   </p>
   
   <p>
  @@ -111,7 +111,7 @@
     format of <em>name-schema.xml</em> where
     <em>name</em> was the same as the <em>project</em>
     property defined in <em>build.properties</em>;
  -  otherwise, Torque was not be able to find your
  +  otherwise, Torque was not able to find your
     database schema file.  This is no longer the case,
     <em>name</em> is no longer restricted to the project
     name. However, it must end with
  @@ -369,7 +369,7 @@
     for the database schema.  In addition, you must
     include the XML declaration and DTD specification in
     your database schema file.  Failure to do so can
  -  result it errors.
  +  result in errors.
   </p>
   
   <p>
  @@ -466,7 +466,7 @@
   log4j.appender.default.file = ./torque.log
   log4j.appender.default.layout = org.apache.log4j.SimpleLayout
   
  -torque.database.default=bookstore
  +torque.database.default = bookstore
   torque.database.bookstore.driver = org.gjt.mm.mysql.Driver
   torque.database.bookstore.url = jdbc:mysql://127.0.0.1/bookstore
   torque.database.bookstore.username = user
  
  
  
  1.7       +2 -2      db-torque/src/java/org/apache/torque/adapter/DBInterbase.java
  
  Index: DBInterbase.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/adapter/DBInterbase.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DBInterbase.java	24 Jun 2002 18:12:19 -0000	1.6
  +++ DBInterbase.java	11 May 2003 12:59:07 -0000	1.7
  @@ -105,7 +105,7 @@
       /**
        * Gets the string delimiter (usually '\'').
        *
  -     * @return The delimeter.
  +     * @return The delimiter.
        */
       public char getStringDelimiter()
       {
  
  
  
  1.4       +2 -2      db-torque/src/generator/src/java/org/apache/torque/engine/database/transform/DTDResolver.java
  
  Index: DTDResolver.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/transform/DTDResolver.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DTDResolver.java	30 Apr 2003 22:27:25 -0000	1.3
  +++ DTDResolver.java	11 May 2003 12:59:07 -0000	1.4
  @@ -103,7 +103,7 @@
               }
               else
               {
  -                log.warn("Could not located the database.dtd");
  +                log.warn("Could not locate the database.dtd");
               }
           }
           catch (Exception ex)
  
  
  
  1.81      +2 -2      db-torque/src/java/org/apache/torque/Torque.java
  
  Index: Torque.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/Torque.java,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- Torque.java	21 Mar 2003 20:30:31 -0000	1.80
  +++ Torque.java	11 May 2003 12:59:07 -0000	1.81
  @@ -215,7 +215,7 @@
           if (configuration == null || configuration.isEmpty())
           {
               // If there are no properties in the "torque" namespace
  -            // than try the "services.DatabaseService" namespace. This
  +            // then try the "services.DatabaseService" namespace. This
               // will soon be deprecated.
               configuration = originalConf.subset("services.DatabaseService");
               if (configuration != null && !configuration.isEmpty())
  
  
  
  1.12      +12 -0     db-torque/src/rttest/test-schema.xml
  
  Index: test-schema.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/src/rttest/test-schema.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- test-schema.xml	8 Apr 2003 20:55:16 -0000	1.11
  +++ test-schema.xml	11 May 2003 12:59:08 -0000	1.12
  @@ -100,4 +100,16 @@
       <column name="START_DATE" type="TIMESTAMP"/>
       <column name="END_DATE" type="TIMESTAMP"/>
     </table>
  +  
  +  <!-- test for hypersonic -->
  +  <table name="NATIVE_TEST">
  +    <column name="NATIVE_ID" required="true" primaryKey="true" type="INTEGER" autoIncrement="true"/>
  +    <column name="NAME" type="VARCHAR" size="250"/>
  +  </table>
  +  <table name="NATIVE_REF_TEST">
  +    <column name="NATIVE_ID" required="true" primaryKey="true" type="INTEGER" autoIncrement="true"/>
  +    <column name="NAME" type="VARCHAR" size="250"/>
  +    <column name="FK_ID" required="true" type="INTEGER"/>
  +  </table>
  +  
   </database>
  
  
  
  1.2       +3 -3      db-torque/notes/sybase-status.txt
  
  Index: sybase-status.txt
  ===================================================================
  RCS file: /home/cvs/db-torque/notes/sybase-status.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sybase-status.txt	14 Dec 2001 22:14:06 -0000	1.1
  +++ sybase-status.txt	11 May 2003 12:59:08 -0000	1.2
  @@ -8,8 +8,8 @@
     not supported so the JDBCToXMLSchema tasks will not generate the schema
     properly at this time.
   
  -o TorqueDataDumpTask will need to know about contraints.  On databases
  -  without constrains, the load generated sql will work, but with constraints,
  +o TorqueDataDumpTask will need to know about constraints.  On databases
  +  without constraints, the load generated sql will work, but with constraints,
     the insert statements need to be in the correct order or they will fail
  -  with constaint violations.
  +  with constant violations.
   
  
  
  

Mime
View raw message