You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by to...@apache.org on 2004/02/25 09:06:16 UTC

cvs commit: db-ojb/xdocs xdoclet-module.xml

tomdz       2004/02/25 00:06:16

  Modified:    xdocs    xdoclet-module.xml
  Log:
  Changed default length of VARCHAR columns to 254, and added warning about missing length specification
  
  Revision  Changes    Path
  1.11      +5 -9      db-ojb/xdocs/xdoclet-module.xml
  
  Index: xdoclet-module.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/xdocs/xdoclet-module.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- xdoclet-module.xml	1 Feb 2004 16:39:45 -0000	1.10
  +++ xdoclet-module.xml	25 Feb 2004 08:06:16 -0000	1.11
  @@ -671,7 +671,7 @@
           name="attr2"
           column="attr2"
           jdbc-type="VARCHAR"
  -        length="24"
  +        length="254"
       >
       </field-descriptor>
       ...
  @@ -1100,8 +1100,8 @@
               using the <code>Object2ByteArrFieldConversion</code> conversion (see <b>conversion</b> attribute
               above).</dd><br/>
               <dt><b>length</b></dt>
  -            <dd>The length of the column if required by the jdbc type. Note that due to restrictions in some
  -            database (e.g. MySQL), for some types, the XDoclet OJB module imposes default lengths if no length
  +            <dd>The length of the column which might be required by the jdbc type in some databases. This is
  +            the reason that for some jdbc types, the XDoclet OJB module imposes default lengths if no length
               is specified:<br/><br/>
               <table>
               <tr>
  @@ -1114,11 +1114,7 @@
               </tr>
               <tr>
               <td><code>VARCHAR</code></td>
  -            <td><code>24</code></td>
  -            </tr>
  -            <tr>
  -            <td><code>LONGVARCHAR</code></td>
  -            <td><code>24</code></td>
  +            <td><code>254</code></td>
               </tr>
               </table><br/></dd><br/>
               <dt><b>name</b></dt>
  @@ -1128,7 +1124,7 @@
               <dd>The precision and scale of the column if required by the jdbc type. They are usually used in
               combination with the <code>DECIMAL</code> and <code>NUMERIC</code> types, and then specifiy the
               number of digits before (<b>precision</b>) and after (<b>scale</b>) the comma (excluding the
  -            plus/minus sign). Due to restrictions in some database (e.g. MySQL), the XDoclet OJB module
  +            plus/minus sign). Due to restrictions in some databases (e.g. MySQL), the XDoclet OJB module
               imposes default values for some types if none are specified:<br/><br/>
               <table>
               <tr>
  
  
  

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