db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb repository_junit.xml
Date Fri, 19 Sep 2003 15:16:23 GMT
brj         2003/09/19 08:16:23

  Modified:    src/schema ojbtest-schema.xml
               src/test/org/apache/ojb repository_junit.xml
  Log:
  multilevel vertical inheritance
  - referential integrity
  - new testclasses
  
  Revision  Changes    Path
  1.52      +25 -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.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- ojbtest-schema.xml	17 Sep 2003 19:01:37 -0000	1.51
  +++ ojbtest-schema.xml	19 Sep 2003 15:16:22 -0000	1.52
  @@ -773,6 +773,9 @@
           <column name="RO_LONG" type="DECIMAL"/>
       </table>
   
  +    <!-- =================================================== -->
  +    <!-- PB vertical inheritance test                        -->
  +    <!-- =================================================== -->
       <table name="TABLE_E">
           <column name="ID" required="true" primaryKey="true" type="INTEGER"/>
           <column name="SOMESUPERVALUE" type="INTEGER" />
  @@ -782,12 +785,34 @@
           <column name="ID" required="true" primaryKey="true" type="INTEGER"/>
           <column name="E_ID" required="true" type="INTEGER"/>
           <column name="SOMEVALUE" type="INTEGER" />
  +	    <foreign-key foreignTable="TABLE_E">
  +    	  <reference local="E_ID" foreign="ID"/>
  +	    </foreign-key>
       </table>
   
       <table name="TABLE_G">
           <column name="ID" required="true" primaryKey="true" type="INTEGER"/>
           <column name="F_ID" required="true" type="INTEGER"/>
           <column name="SOMESUBVALUE" type="INTEGER" />
  +	    <foreign-key foreignTable="TABLE_F">
  +    	  <reference local="F_ID" foreign="ID"/>
  +	    </foreign-key>
  +    </table>
  +
  +    <table name="TABLE_F1">
  +        <column name="ID" required="true" primaryKey="true" type="INTEGER"/>
  +        <column name="SOMEVALUE" type="INTEGER" />
  +	    <foreign-key foreignTable="TABLE_E">
  +    	  <reference local="ID" foreign="ID"/>
  +	    </foreign-key>
  +    </table>
  +
  +    <table name="TABLE_G1">
  +        <column name="ID" required="true" primaryKey="true" type="INTEGER"/>
  +        <column name="SOMESUBVALUE" type="INTEGER" />
  +	    <foreign-key foreignTable="TABLE_F1">
  +    	  <reference local="ID" foreign="ID"/>
  +	    </foreign-key>
       </table>
   
   
  
  
  
  1.94      +55 -3     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.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- repository_junit.xml	17 Sep 2003 22:31:51 -0000	1.93
  +++ repository_junit.xml	19 Sep 2003 15:16:23 -0000	1.94
  @@ -4616,7 +4616,6 @@
               jdbc-type="INTEGER"
           />
   
  -
     		<reference-descriptor name="super"
     			class-ref="org.apache.ojb.broker.ObjectRepository$E"
        		auto-retrieve="true"
  @@ -4626,6 +4625,7 @@
     		</reference-descriptor>
       </class-descriptor>
   
  +
       <class-descriptor
           class="org.apache.ojb.broker.ObjectRepository$G"
           table="TABLE_G">
  @@ -4651,7 +4651,6 @@
               jdbc-type="INTEGER"
           />
   
  -
     		<reference-descriptor name="super"
     			class-ref="org.apache.ojb.broker.ObjectRepository$F"
        		auto-retrieve="true"
  @@ -4661,6 +4660,59 @@
     		</reference-descriptor>
       </class-descriptor>
   
  +
  + <class-descriptor
  +        class="org.apache.ojb.broker.ObjectRepository$F1"
  +        table="TABLE_F1">
  +
  +        <field-descriptor
  +            name="id"
  +            column="ID"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +        />
  +
  +        <field-descriptor
  +            name="someValue"
  +            column="SOMEVALUE"
  +            jdbc-type="INTEGER"
  +        />
  +
  +  		<reference-descriptor name="super"
  +  			class-ref="org.apache.ojb.broker.ObjectRepository$E"
  +     		auto-retrieve="true"
  +     		auto-update="true"
  +     		auto-delete="true">
  +    		<foreignkey field-ref="id" />
  +  		</reference-descriptor>
  +    </class-descriptor>
  +
  +
  +    <class-descriptor
  +        class="org.apache.ojb.broker.ObjectRepository$G1"
  +        table="TABLE_G1">
  +
  +        <field-descriptor
  +            name="id"
  +            column="ID"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +        />
  +
  +        <field-descriptor
  +            name="someSubValue"
  +            column="SOMESUBVALUE"
  +            jdbc-type="INTEGER"
  +        />
  +
  +  		<reference-descriptor name="super"
  +  			class-ref="org.apache.ojb.broker.ObjectRepository$F1"
  +     		auto-retrieve="true"
  +     		auto-update="true"
  +     		auto-delete="true">
  +    		<foreignkey field-ref="id" />
  +  		</reference-descriptor>
  +    </class-descriptor>
   
       <!-- ************************************************* -->
       <!--      abstract collections test                    -->
  
  
  

---------------------------------------------------------------------
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