db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/xdoclet/java/src/xdoclet/modules/ojb/constraints JdbcTypeHelper.java FieldDescriptorConstraints.java
Date Wed, 25 Feb 2004 08:04:26 GMT
tomdz       2004/02/25 00:04:26

  Modified:    src/xdoclet/test/xdoclet/modules/ojb/tests
                        FieldTagJdbcTypeAttributeTests.java
                        ModifyInheritedTagOrderbyAttributeTests.java
                        CollectionTagIndirectionTableAttributeTests.java
                        CollectionTagForeignkeyAttributeTests.java
                        RunAllTests.java
                        ModifyInheritedTagLengthAttributeTests.java
                        FieldTagLengthAttributeTests.java
                        ModifyInheritedTagJdbcTypeAttributeTests.java
                        ModifyInheritedTagConversionAttributeTests.java
                        FieldTagConversionAttributeTests.java
                        IndexTagTests.java FieldTagSimpleTests.java
                        ReferenceTagForeignkeyAttributeTests.java
                        ModifyInheritedTagForeignkeyAttributeTests.java
                        CollectionTagOrderbyAttributeTests.java
               src/xdoclet/java/src/xdoclet/modules/ojb/constraints
                        JdbcTypeHelper.java FieldDescriptorConstraints.java
  Log:
  Changed default length of VARCHAR columns to 254, and added warning about missing length specification
  
  Revision  Changes    Path
  1.4       +2 -4      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagJdbcTypeAttributeTests.java
  
  Index: FieldTagJdbcTypeAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagJdbcTypeAttributeTests.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FieldTagJdbcTypeAttributeTests.java	18 Jan 2004 18:24:49 -0000	1.3
  +++ FieldTagJdbcTypeAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.4
  @@ -558,7 +558,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -569,7 +569,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -597,7 +597,6 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"LONGVARCHAR\"\n"+
  -            "        length=\"24\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -608,7 +607,6 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"LONGVARCHAR\"\n"+
  -            "                size=\"24\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.2       +12 -12    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagOrderbyAttributeTests.java
  
  Index: ModifyInheritedTagOrderbyAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagOrderbyAttributeTests.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ModifyInheritedTagOrderbyAttributeTests.java	23 Dec 2003 22:18:42 -0000	1.1
  +++ ModifyInheritedTagOrderbyAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.2
  @@ -270,7 +270,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -325,7 +325,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"val2\"\n"+
               "                javaName=\"val2\"\n"+
  @@ -630,7 +630,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -710,7 +710,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"val2\"\n"+
               "                javaName=\"val2\"\n"+
  @@ -897,7 +897,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -947,7 +947,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"aid\"\n"+
               "                javaName=\"aid\"\n"+
  @@ -1079,7 +1079,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -1130,7 +1130,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"aid\"\n"+
               "                javaName=\"aid\"\n"+
  @@ -1223,7 +1223,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -1273,7 +1273,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"aid\"\n"+
               "                javaName=\"aid\"\n"+
  @@ -1366,7 +1366,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -1417,7 +1417,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"aid\"\n"+
               "                javaName=\"aid\"\n"+
  
  
  
  1.6       +17 -17    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/CollectionTagIndirectionTableAttributeTests.java
  
  Index: CollectionTagIndirectionTableAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/CollectionTagIndirectionTableAttributeTests.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CollectionTagIndirectionTableAttributeTests.java	28 Jan 2004 23:28:38 -0000	1.5
  +++ CollectionTagIndirectionTableAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.6
  @@ -219,7 +219,7 @@
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.GUID2StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -261,13 +261,13 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"A_B\">\n"+
               "        <column name=\"AID\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"BID\"\n"+
               "                type=\"DATE\"\n"+
  @@ -615,7 +615,7 @@
               "        column=\"id\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -636,7 +636,7 @@
               "        />\n"+
               "        <column name=\"BID\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <foreign-key foreignTable=\"A\">\n"+
               "            <reference local=\"AID\" foreign=\"id\"/>\n"+
  @@ -651,7 +651,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -707,7 +707,7 @@
               "        column=\"id2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -738,7 +738,7 @@
               "        column=\"id1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -764,7 +764,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"id3\"\n"+
               "                javaName=\"id3\"\n"+
  @@ -779,14 +779,14 @@
               "        />\n"+
               "        <column name=\"AID2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"AID3\"\n"+
               "                type=\"INTEGER\"\n"+
               "        />\n"+
               "        <column name=\"BID1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"BID2\"\n"+
               "                type=\"INTEGER\"\n"+
  @@ -807,7 +807,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"id2\"\n"+
               "                javaName=\"id2\"\n"+
  @@ -886,7 +886,7 @@
               "        column=\"id\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -907,7 +907,7 @@
               "        column=\"id\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -936,7 +936,7 @@
               "        />\n"+
               "        <column name=\"BID\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
  @@ -945,7 +945,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"C\">\n"+
  @@ -954,7 +954,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.4       +12 -12    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/CollectionTagForeignkeyAttributeTests.java
  
  Index: CollectionTagForeignkeyAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/CollectionTagForeignkeyAttributeTests.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CollectionTagForeignkeyAttributeTests.java	21 Jan 2004 00:01:21 -0000	1.3
  +++ CollectionTagForeignkeyAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.4
  @@ -510,7 +510,7 @@
               "        column=\"id2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -535,7 +535,7 @@
               "        name=\"aid2\"\n"+
               "        column=\"aid2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -554,7 +554,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
  @@ -565,7 +565,7 @@
               "        <column name=\"aid2\"\n"+
               "                javaName=\"aid2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -680,7 +680,7 @@
               "        column=\"id2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -705,7 +705,7 @@
               "        name=\"aid2\"\n"+
               "        column=\"aid2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "        access=\"anonymous\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
  @@ -725,7 +725,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
  @@ -736,7 +736,7 @@
               "        <column name=\"aid2\"\n"+
               "                javaName=\"aid2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -900,7 +900,7 @@
               "        column=\"id2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -930,7 +930,7 @@
               "        name=\"aid2\"\n"+
               "        column=\"aid2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -949,7 +949,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"C\">\n"+
  @@ -960,7 +960,7 @@
               "        <column name=\"aid2\"\n"+
               "                javaName=\"aid2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.11      +4 -4      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/RunAllTests.java
  
  Index: RunAllTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/RunAllTests.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- RunAllTests.java	1 Feb 2004 16:39:44 -0000	1.10
  +++ RunAllTests.java	25 Feb 2004 08:04:26 -0000	1.11
  @@ -111,8 +111,8 @@
           suite.addTest(new TestSuite(FieldTagDefaultFetchAttributeTests.class));
           suite.addTest(new TestSuite(FieldTagIdAttributeTests.class));
           suite.addTest(new TestSuite(FieldTagIndexedAttributeTests.class));
  -        suite.addTest(new TestSuite(FieldTagJdbcTypeAttributeTests.class));
  -        suite.addTest(new TestSuite(FieldTagLengthAttributeTests.class));
  +        suite.addTest(new TestSuite(FieldTagJdbcTypeAttributeTests.class));*/
  +        suite.addTest(new TestSuite(FieldTagLengthAttributeTests.class));/*
           suite.addTest(new TestSuite(FieldTagLockingAttributeTests.class));
           suite.addTest(new TestSuite(FieldTagNameAttributeTests.class));
           suite.addTest(new TestSuite(FieldTagNullableAttributeTests.class));
  @@ -164,8 +164,8 @@
           suite.addTest(new TestSuite(ModifyInheritedTagForeignkeyAttributeTests.class));
           suite.addTest(new TestSuite(ModifyInheritedTagIdAttributeTests.class));
           suite.addTest(new TestSuite(ModifyInheritedTagIgnoreAttributeTests.class));
  -        suite.addTest(new TestSuite(ModifyInheritedTagJdbcTypeAttributeTests.class));
  -        suite.addTest(new TestSuite(ModifyInheritedTagLengthAttributeTests.class));
  +        suite.addTest(new TestSuite(ModifyInheritedTagJdbcTypeAttributeTests.class));*/
  +        suite.addTest(new TestSuite(ModifyInheritedTagLengthAttributeTests.class));/*
           suite.addTest(new TestSuite(ModifyInheritedTagLockingAttributeTests.class));
           suite.addTest(new TestSuite(ModifyInheritedTagNullableAttributeTests.class));
           suite.addTest(new TestSuite(ModifyInheritedTagOrderbyAttributeTests.class));
  
  
  
  1.3       +4 -4      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagLengthAttributeTests.java
  
  Index: ModifyInheritedTagLengthAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagLengthAttributeTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ModifyInheritedTagLengthAttributeTests.java	18 Jan 2004 18:24:49 -0000	1.2
  +++ ModifyInheritedTagLengthAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.3
  @@ -176,7 +176,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -194,7 +194,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -235,7 +235,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>\n"+
  @@ -258,7 +258,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"C\">\n"+
  
  
  
  1.3       +4 -4      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagLengthAttributeTests.java
  
  Index: FieldTagLengthAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagLengthAttributeTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FieldTagLengthAttributeTests.java	12 Feb 2004 14:33:40 -0000	1.2
  +++ FieldTagLengthAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.3
  @@ -124,7 +124,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -135,7 +135,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -166,7 +166,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -177,7 +177,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.3       +6 -6      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagJdbcTypeAttributeTests.java
  
  Index: ModifyInheritedTagJdbcTypeAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagJdbcTypeAttributeTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ModifyInheritedTagJdbcTypeAttributeTests.java	18 Jan 2004 18:24:49 -0000	1.2
  +++ ModifyInheritedTagJdbcTypeAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.3
  @@ -368,7 +368,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -385,7 +385,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -488,7 +488,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>\n"+
  @@ -510,7 +510,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
  @@ -554,7 +554,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.GUID2StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>\n"+
  @@ -576,7 +576,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
  
  
  
  1.3       +16 -16    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagConversionAttributeTests.java
  
  Index: ModifyInheritedTagConversionAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagConversionAttributeTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ModifyInheritedTagConversionAttributeTests.java	18 Jan 2004 18:24:49 -0000	1.2
  +++ ModifyInheritedTagConversionAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.3
  @@ -96,7 +96,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>\n"+
  @@ -109,7 +109,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -120,14 +120,14 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -169,7 +169,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>\n"+
  @@ -181,7 +181,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -192,14 +192,14 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"C\">\n"+
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -261,7 +261,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.GUID2StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>\n"+
  @@ -274,7 +274,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -285,14 +285,14 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -332,7 +332,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>\n"+
  @@ -345,7 +345,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\""+TestConversionClass.class.getName()+"\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -356,14 +356,14 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.3       +8 -8      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagConversionAttributeTests.java
  
  Index: FieldTagConversionAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagConversionAttributeTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FieldTagConversionAttributeTests.java	18 Jan 2004 18:24:49 -0000	1.2
  +++ FieldTagConversionAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.3
  @@ -141,7 +141,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -152,7 +152,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -182,7 +182,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -193,7 +193,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -261,7 +261,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\""+TestConversionClass.class.getName()+"\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -272,7 +272,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -302,7 +302,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\""+TestConversionClass.class.getName()+"\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -313,7 +313,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.2       +14 -14    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/IndexTagTests.java
  
  Index: IndexTagTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/IndexTagTests.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IndexTagTests.java	26 Dec 2003 20:17:51 -0000	1.1
  +++ IndexTagTests.java	25 Feb 2004 08:04:26 -0000	1.2
  @@ -117,7 +117,7 @@
               "        name=\"attr2\"\n"+
               "        column=\"attr2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -149,7 +149,7 @@
               "        name=\"attr2\"\n"+
               "        column=\"attr2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -174,7 +174,7 @@
               "        name=\"attr2\"\n"+
               "        column=\"attr2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -201,7 +201,7 @@
               "        <column name=\"attr2\"\n"+
               "                javaName=\"attr2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"attr3\"\n"+
               "                javaName=\"attr3\"\n"+
  @@ -223,7 +223,7 @@
               "        <column name=\"attr2\"\n"+
               "                javaName=\"attr2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"attr3\"\n"+
               "                javaName=\"attr3\"\n"+
  @@ -241,7 +241,7 @@
               "        <column name=\"attr2\"\n"+
               "                javaName=\"attr2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"attr3\"\n"+
               "                javaName=\"attr3\"\n"+
  @@ -316,7 +316,7 @@
               "        name=\"attr2\"\n"+
               "        column=\"attr2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -344,7 +344,7 @@
               "        <column name=\"attr2\"\n"+
               "                javaName=\"attr2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"attr3\"\n"+
               "                javaName=\"attr3\"\n"+
  @@ -400,7 +400,7 @@
               "        name=\"attr2\"\n"+
               "        column=\"attr2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -428,7 +428,7 @@
               "        <column name=\"attr2\"\n"+
               "                javaName=\"attr2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"attr3\"\n"+
               "                javaName=\"attr3\"\n"+
  @@ -479,7 +479,7 @@
               "        name=\"attr2\"\n"+
               "        column=\"attr2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -507,7 +507,7 @@
               "        <column name=\"attr2\"\n"+
               "                javaName=\"attr2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"attr3\"\n"+
               "                javaName=\"attr3\"\n"+
  @@ -557,7 +557,7 @@
               "        name=\"attr2\"\n"+
               "        column=\"attr2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -585,7 +585,7 @@
               "        <column name=\"attr2\"\n"+
               "                javaName=\"attr2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"attr3\"\n"+
               "                javaName=\"attr3\"\n"+
  
  
  
  1.4       +4 -4      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagSimpleTests.java
  
  Index: FieldTagSimpleTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/FieldTagSimpleTests.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FieldTagSimpleTests.java	18 Jan 2004 18:24:49 -0000	1.3
  +++ FieldTagSimpleTests.java	25 Feb 2004 08:04:26 -0000	1.4
  @@ -683,7 +683,7 @@
               "        name=\"attr\"\n"+
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -694,7 +694,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  @@ -985,7 +985,7 @@
               "        column=\"attr\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        conversion=\"org.apache.ojb.broker.accesslayer.conversions.GUID2StringFieldConversion\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -996,7 +996,7 @@
               "        <column name=\"attr\"\n"+
               "                javaName=\"attr\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.5       +8 -8      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ReferenceTagForeignkeyAttributeTests.java
  
  Index: ReferenceTagForeignkeyAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ReferenceTagForeignkeyAttributeTests.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ReferenceTagForeignkeyAttributeTests.java	21 Jan 2004 00:01:21 -0000	1.4
  +++ ReferenceTagForeignkeyAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.5
  @@ -352,7 +352,7 @@
               "        name=\"attrKeyB\"\n"+
               "        column=\"attrKeyB\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <reference-descriptor\n"+
  @@ -372,7 +372,7 @@
               "        column=\"idB\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -394,7 +394,7 @@
               "        <column name=\"attrKeyB\"\n"+
               "                javaName=\"attrKeyB\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <foreign-key foreignTable=\"B\">\n"+
               "            <reference local=\"attrKeyB\" foreign=\"idB\"/>\n"+
  @@ -407,7 +407,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"idA\"\n"+
               "                javaName=\"idA\"\n"+
  @@ -524,7 +524,7 @@
               "        name=\"attrKeyB\"\n"+
               "        column=\"attrKeyB\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <reference-descriptor\n"+
  @@ -556,7 +556,7 @@
               "        column=\"idB\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -571,7 +571,7 @@
               "        <column name=\"attrKeyB\"\n"+
               "                javaName=\"attrKeyB\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"C\">\n"+
  @@ -586,7 +586,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.3       +10 -10    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagForeignkeyAttributeTests.java
  
  Index: ModifyInheritedTagForeignkeyAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/ModifyInheritedTagForeignkeyAttributeTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ModifyInheritedTagForeignkeyAttributeTests.java	18 Jan 2004 18:24:49 -0000	1.2
  +++ ModifyInheritedTagForeignkeyAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.3
  @@ -574,7 +574,7 @@
               "        column=\"id2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -602,7 +602,7 @@
               "        column=\"id2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -629,7 +629,7 @@
               "        column=\"id2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
               "        primarykey=\"true\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <collection-descriptor\n"+
  @@ -648,7 +648,7 @@
               "        name=\"aid3\"\n"+
               "        column=\"aid3\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "        access=\"anonymous\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
  @@ -668,7 +668,7 @@
               "        name=\"aid2\"\n"+
               "        column=\"aid2\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "</class-descriptor>",
  @@ -687,7 +687,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"B\">\n"+
  @@ -702,7 +702,7 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"C\">\n"+
  @@ -717,14 +717,14 @@
               "                type=\"VARCHAR\"\n"+
               "                primaryKey=\"true\"\n"+
               "                required=\"true\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "    <table name=\"D\">\n"+
               "        <column name=\"aid3\"\n"+
               "                javaName=\"aid3\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"aid1\"\n"+
               "                javaName=\"aid1\"\n"+
  @@ -737,7 +737,7 @@
               "        <column name=\"aid2\"\n"+
               "                javaName=\"aid2\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "    </table>\n"+
               "</database>",
  
  
  
  1.6       +6 -6      db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/CollectionTagOrderbyAttributeTests.java
  
  Index: CollectionTagOrderbyAttributeTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/CollectionTagOrderbyAttributeTests.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CollectionTagOrderbyAttributeTests.java	25 Jan 2004 12:47:33 -0000	1.5
  +++ CollectionTagOrderbyAttributeTests.java	25 Feb 2004 08:04:26 -0000	1.6
  @@ -517,7 +517,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -554,7 +554,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"val2\"\n"+
               "                javaName=\"val2\"\n"+
  @@ -637,7 +637,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -674,7 +674,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"val2\"\n"+
               "                javaName=\"val2\"\n"+
  @@ -757,7 +757,7 @@
               "        name=\"val1\"\n"+
               "        column=\"val1\"\n"+
               "        jdbc-type=\"VARCHAR\"\n"+
  -            "        length=\"24\"\n"+
  +            "        length=\"254\"\n"+
               "    >\n"+
               "    </field-descriptor>\n"+
               "    <field-descriptor\n"+
  @@ -794,7 +794,7 @@
               "        <column name=\"val1\"\n"+
               "                javaName=\"val1\"\n"+
               "                type=\"VARCHAR\"\n"+
  -            "                size=\"24\"\n"+
  +            "                size=\"254\"\n"+
               "        />\n"+
               "        <column name=\"val2\"\n"+
               "                javaName=\"val2\"\n"+
  
  
  
  1.3       +1 -1      db-ojb/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/JdbcTypeHelper.java
  
  Index: JdbcTypeHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/JdbcTypeHelper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JdbcTypeHelper.java	12 Feb 2004 14:33:41 -0000	1.2
  +++ JdbcTypeHelper.java	25 Feb 2004 08:04:26 -0000	1.3
  @@ -123,7 +123,7 @@
   
           // lengths
           _jdbcLengths.put("CHAR",    "1");
  -        _jdbcLengths.put("VARCHAR", "24");
  +        _jdbcLengths.put("VARCHAR", "254");
   
           // precisions
           _jdbcPrecisions.put("DECIMAL", "20");
  
  
  
  1.4       +13 -0     db-ojb/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/FieldDescriptorConstraints.java
  
  Index: FieldDescriptorConstraints.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/java/src/xdoclet/modules/ojb/constraints/FieldDescriptorConstraints.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FieldDescriptorConstraints.java	25 Jan 2004 12:47:33 -0000	1.3
  +++ FieldDescriptorConstraints.java	25 Feb 2004 08:04:26 -0000	1.4
  @@ -2,6 +2,7 @@
   
   import java.util.HashMap;
   
  +import xdoclet.modules.ojb.LogHelper;
   import xdoclet.modules.ojb.model.FieldDescriptorDef;
   import xdoclet.modules.ojb.model.PropertyHelper;
   
  @@ -259,6 +260,10 @@
   
               if (defaultLength != null)
               {
  +                LogHelper.warn(true,
  +                        	   FieldDescriptorConstraints.class,
  +							   "ensureLength",
  +							   "The field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+" has no length setting though its jdbc type requires it (in most databases); using default length of "+defaultLength);
                   fieldDef.setProperty(PropertyHelper.OJB_PROPERTY_LENGTH, defaultLength);
               }
           }
  @@ -280,6 +285,10 @@
   
               if (defaultPrecision != null)
               {
  +                LogHelper.warn(true,
  +                        	   FieldDescriptorConstraints.class,
  +							   "ensureLength",
  +							   "The field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+" has no precision setting though its jdbc type requires it (in most databases); using default precision of "+defaultPrecision);
                   fieldDef.setProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_PRECISION, defaultPrecision);
               }
               else if (fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_SCALE))
  @@ -293,6 +302,10 @@
   
               if (defaultScale != null)
               {
  +                LogHelper.warn(true,
  +                        	   FieldDescriptorConstraints.class,
  +							   "ensureLength",
  +							   "The field "+fieldDef.getName()+" in class "+fieldDef.getOwner().getName()+" has no scale setting though its jdbc type requires it (in most databases); using default scale of "+defaultScale);
                   fieldDef.setProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_SCALE, defaultScale);
               }
               else if (fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_PRECISION) || fieldDef.hasProperty(PropertyHelper.OJB_PROPERTY_DEFAULT_PRECISION))
  
  
  

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


Mime
View raw message