db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb repository_junit.xml
Date Fri, 28 Feb 2003 12:35:52 GMT
arminw      2003/02/28 04:35:52

  Modified:    src/schema ojbtest-schema.xml
               src/test/org/apache/ojb repository_junit.xml
  Log:
  update descriptor, add new descriptor
  for field conversion tests
  
  Revision  Changes    Path
  1.24      +7 -0      db-ojb/src/schema/ojbtest-schema.xml
  
  Index: ojbtest-schema.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/schema/ojbtest-schema.xml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ojbtest-schema.xml	19 Feb 2003 10:37:55 -0000	1.23
  +++ ojbtest-schema.xml	28 Feb 2003 12:35:51 -0000	1.24
  @@ -547,6 +547,13 @@
           <column name="PARENT_UID" type="DECIMAL"/>
       </table>
   
  +    <table name="CONVERSION_VO">
  +        <column name="PK_WITH_AUTO" required="true" primaryKey="true" type="INTEGER"/>
  +        <column name="PK_WITHOUT_AUTO" required="true" primaryKey="true" type="INTEGER"/>
  +        <column name="NORMAL_WITH_AUTO" required="false" primaryKey="false" type="INTEGER"/>
  +        <column name="NORMAL_WITHOUT_AUTO" required="false" primaryKey="false" type="INTEGER"/>
  +    </table>
  +
       <!-- =================================================== -->
       <!-- Perf-test table                                     -->
       <!-- =================================================== -->
  
  
  
  1.43      +102 -13   db-ojb/src/test/org/apache/ojb/repository_junit.xml
  
  Index: repository_junit.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit.xml,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- repository_junit.xml	19 Feb 2003 10:37:54 -0000	1.42
  +++ repository_junit.xml	28 Feb 2003 12:35:51 -0000	1.43
  @@ -2451,7 +2451,7 @@
   <!--      Tests checking field conversion              -->
   <!-- ************************************************* -->
       <class-descriptor
  -   	  class="org.apache.ojb.broker.ConversionReferrer"
  +   	  class="org.apache.ojb.broker.ConvertedKeyReferenceTest$ConversionReferrer"
      	  table="CONV_REFERER"
       >
           <field-descriptor
  @@ -2464,7 +2464,7 @@
            name="ref1"
            column="REF1"
            jdbc-type="INTEGER"
  -         conversion="org.apache.ojb.broker.TestInt2IntConverter"
  +         conversion="org.apache.ojb.broker.ConvertedKeyReferenceTest$TestInt2IntConverter"
           />
   
           <field-descriptor
  @@ -2472,19 +2472,22 @@
            column="TEST_ID"
            jdbc-type="INTEGER"
            primarykey="false"
  -         conversion="org.apache.ojb.broker.TestInt2IntConverter"
  +         conversion="org.apache.ojb.broker.ConvertedKeyReferenceTest$TestInt2IntConverter"
           />
   
           <reference-descriptor
  -          name="referred"
  -          class-ref="org.apache.ojb.broker.ConversionReferred"
  +            name="referred"
  +            class-ref="org.apache.ojb.broker.ConvertedKeyReferenceTest$ConversionReferred"
  +            auto-retrieve="true"
  +            auto-update="true"
  +            auto-delete="false"
            >
             <foreignkey field-ref="ref1"/>
            </reference-descriptor>
       </class-descriptor>
   
       <class-descriptor
  -  	  class="org.apache.ojb.broker.ConversionReferred"
  +  	  class="org.apache.ojb.broker.ConvertedKeyReferenceTest$ConversionReferred"
      	  table="CONV_REFERED"
       >
           <field-descriptor
  @@ -2492,7 +2495,7 @@
            column="PK1"
            jdbc-type="INTEGER"
            primarykey="true"
  -         conversion="org.apache.ojb.broker.TestInt2IntConverter"
  +         conversion="org.apache.ojb.broker.ConvertedKeyReferenceTest$TestInt2IntConverter"
           />
   
           <field-descriptor
  @@ -2500,15 +2503,15 @@
            column="TEST_ID"
            jdbc-type="INTEGER"
            primarykey="false"
  -         conversion="org.apache.ojb.broker.TestInt2IntConverter"
  +         conversion="org.apache.ojb.broker.ConvertedKeyReferenceTest$TestInt2IntConverter"
           />
       </class-descriptor>
   
   
   
  -
  +    <!-- Field conversion test using PB-api and BigDecimal -->
       <class-descriptor
  -        class="org.apache.ojb.odmg.FieldConversion_Node"
  +        class="org.apache.ojb.broker.FieldConversionForeigenKeyTest$Node"
           table="FIELD_CONVERSION_NODE"
       >
           <field-descriptor
  @@ -2517,7 +2520,7 @@
               jdbc-type="DECIMAL"
               primarykey="true"
               autoincrement="true"
  -            conversion="org.apache.ojb.odmg.FieldConversion_LongToBigDecimalConversion"
  +            conversion="org.apache.ojb.broker.FieldConversionForeigenKeyTest$LongToBigDecimalConversion"
           />
   
           <field-descriptor
  @@ -2533,12 +2536,12 @@
               name="refId"
               column="PARENT_UID"
               jdbc-type="DECIMAL"
  -            conversion="org.apache.ojb.odmg.FieldConversion_LongToBigDecimalConversion"
  +            conversion="org.apache.ojb.broker.FieldConversionForeigenKeyTest$LongToBigDecimalConversion"
           />
   
           <reference-descriptor
               name="parent"
  -            class-ref="org.apache.ojb.odmg.FieldConversion_Node"
  +            class-ref="org.apache.ojb.broker.FieldConversionForeigenKeyTest$Node"
               auto-update="true"
           >
               <foreignkey field-ref="refId"/>
  @@ -2546,6 +2549,92 @@
       </class-descriptor>
   
   
  +    <!--
  +        Integer pkWithAutoIncrement;
  +        Integer pkWithoutAutoIncrement;
  +        Integer normalWithAutoIncrement;
  +        Integer normalWithoutAutoIncrement;
  +    -->
  +    <class-descriptor
  +        class="org.apache.ojb.broker.FieldConversionTest$ConversionVO"
  +        table="CONVERSION_VO"
  +    >
  +        <field-descriptor
  +            name="pkWithAutoIncrement"
  +            column="PK_WITH_AUTO"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +            autoincrement="true"
  +            conversion="org.apache.ojb.broker.FieldConversionTest$FieldConversionLongToInteger"
  +        />
  +
  +        <field-descriptor
  +            name="pkWithoutAutoIncrement"
  +            column="PK_WITHOUT_AUTO"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +            autoincrement="false"
  +            conversion="org.apache.ojb.broker.FieldConversionTest$FieldConversionConversionIdToInteger"
  +        />
  +
  +        <field-descriptor
  +            name="normalWithAutoIncrement"
  +            column="NORMAL_WITH_AUTO"
  +            jdbc-type="INTEGER"
  +            primarykey="false"
  +            autoincrement="true"
  +            conversion="org.apache.ojb.broker.FieldConversionTest$FieldConversionLongToInteger"
  +        />
  +
  +        <field-descriptor
  +            name="normalWithoutAutoIncrement"
  +            column="NORMAL_WITHOUT_AUTO"
  +            jdbc-type="INTEGER"
  +            primarykey="false"
  +            autoincrement="false"
  +            conversion="org.apache.ojb.broker.FieldConversionTest$FieldConversionConversionIdToInteger"
  +        />
  +    </class-descriptor>
  +
  +
  +    <!-- Field conversion test using ODMG-api -->
  +    <class-descriptor
  +        class="org.apache.ojb.odmg.FieldConversion_ForeigenKeyTest$Node"
  +        table="FIELD_CONVERSION_NODE"
  +    >
  +        <field-descriptor
  +            name="uid"
  +            column="NODE_ID"
  +            jdbc-type="DECIMAL"
  +            primarykey="true"
  +            autoincrement="true"
  +            conversion="org.apache.ojb.odmg.FieldConversion_ForeigenKeyTest$LongToBigDecimalConversion"
  +        />
  +
  +        <field-descriptor
  +            name="nodeState"
  +            column="NODE_STATE"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +            autoincrement="false"
  +            conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion"
  +        />
  +
  +        <field-descriptor
  +            name="refId"
  +            column="PARENT_UID"
  +            jdbc-type="DECIMAL"
  +            conversion="org.apache.ojb.odmg.FieldConversion_ForeigenKeyTest$LongToBigDecimalConversion"
  +        />
  +
  +        <reference-descriptor
  +            name="parent"
  +            class-ref="org.apache.ojb.odmg.FieldConversion_ForeigenKeyTest$Node"
  +            auto-update="true"
  +        >
  +            <foreignkey field-ref="refId"/>
  +        </reference-descriptor>
  +    </class-descriptor>
   
   
   <!-- ************************************************* -->
  
  
  

Mime
View raw message