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/schema ojbtest-schema.xml
Date Mon, 19 Apr 2004 16:23:26 GMT
arminw      2004/04/19 09:23:26

  Modified:    src/test/org/apache/ojb repository_junit_meta_seq.xml
               src/schema ojbtest-schema.xml
  Log:
  add new tests
  update tests
  
  Revision  Changes    Path
  1.5       +30 -5     db-ojb/src/test/org/apache/ojb/repository_junit_meta_seq.xml
  
  Index: repository_junit_meta_seq.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit_meta_seq.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- repository_junit_meta_seq.xml	5 Apr 2004 13:58:59 -0000	1.4
  +++ repository_junit_meta_seq.xml	19 Apr 2004 16:23:26 -0000	1.5
  @@ -674,7 +674,7 @@
   
   
   
  -<!-- ************************************************* -->
  +    <!-- ************************************************* -->
       <!--      PB 'readonly' attribute tests                -->
       <!-- ************************************************* -->
       <!--
  @@ -761,7 +761,7 @@
           <attribute
               attribute-name="cacheable"
               attribute-value="false"/>
  -        
  +
       </class-descriptor>
   
   
  @@ -810,9 +810,34 @@
       </class-descriptor>
   
   
  -
  -
  -
  -
  +<!-- ************************************************* -->
  +<!--      autoincrement test                           -->
  +<!-- ************************************************* -->
  +<class-descriptor
  +    class="org.apache.ojb.broker.sequence.AutoIncrementTest$IncrementObject"
  +    table="AUTO_INCREMENT">
  +
  +    <field-descriptor
  +        name="intId"
  +        column="INT_ID"
  +        jdbc-type="INTEGER"
  +        primarykey="true"
  +        autoincrement="true"
  +    />
  +
  +    <field-descriptor
  +        name="integerId"
  +        column="INTEGER_ID"
  +        jdbc-type="INTEGER"
  +        autoincrement="true"
  +    />
  +
  +    <field-descriptor
  +        name="str"
  +        column="STR_ID"
  +        jdbc-type="VARCHAR"
  +        autoincrement="true"
  +    />
  +</class-descriptor>
   
   <!-- Mapping of classes used in junit tests and tutorials ends here -->
  
  
  
  1.74      +48 -1     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.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- ojbtest-schema.xml	6 Apr 2004 19:22:43 -0000	1.73
  +++ ojbtest-schema.xml	19 Apr 2004 16:23:26 -0000	1.74
  @@ -604,6 +604,15 @@
           <column name="NAME" type="VARCHAR" size="100"/>
       </table>
   
  +    <!-- =================================================== -->
  +    <!-- autoincrement test                                  -->
  +    <!-- =================================================== -->
  +    <table name="AUTO_INCREMENT">
  +        <column name="INT_ID" type="INTEGER"/>
  +        <column name="INTEGER_ID" type="INTEGER"/>
  +        <column name="STR_ID" type="VARCHAR" size="255"/>
  +    </table>
  +
   
       <!-- =================================================== -->
       <!-- EJB examples tables                                 -->
  @@ -814,7 +823,7 @@
       <table name="M2N_TEST_ACTOR">
           <column name="OBJ_ID" required="true" primaryKey="true" type="INTEGER"/>
           <column name="OBJ_ID2" required="true" primaryKey="true" type="INTEGER"/>
  -        <column name="NAME" type="VARCHAR" size="50"/>
  +        <column name="NAME" type="VARCHAR" size="150"/>
       </table>
   
       <table name="M2N_TEST_MOVIE">
  @@ -1092,6 +1101,9 @@
           <column name="OBJ_ID" required="true" primaryKey="true" type="INTEGER"/>
           <column name="NAME" type="VARCHAR" size="150"/>
           <column name="FK_ADDRESS" type="INTEGER"/>
  +        <foreign-key foreignTable="INHERITANCE_MULTI_ADDRESS">
  +    	  <reference local="FK_ADDRESS" foreign="OBJ_ID"/>
  +	    </foreign-key>
       </table>
   
       <table name="INHERITANCE_MULTI_EXECUTIVE">
  @@ -1099,17 +1111,52 @@
           <column name="SUPER_ID" type="INTEGER"/>
           <column name="MANAGER_ID" type="INTEGER"/>
           <column name="DEPARTMENT" type="VARCHAR" size="150"/>
  +        <foreign-key foreignTable="INHERITANCE_MULTI_EMPLOYEE">
  +    	  <reference local="SUPER_ID" foreign="OBJ_ID"/>
  +	    </foreign-key>
       </table>
   
       <table name="INHERITANCE_MULTI_MANAGER">
           <column name="OBJ_ID" required="true" primaryKey="true" type="INTEGER"/>
           <column name="SUPER_ID" type="INTEGER"/>
  +        <foreign-key foreignTable="INHERITANCE_MULTI_EXECUTIVE">
  +    	  <reference local="SUPER_ID" foreign="OBJ_ID"/>
  +	    </foreign-key>
       </table>
   
       <table name="INHERITANCE_MULTI_ADDRESS">
           <column name="OBJ_ID" required="true" primaryKey="true" type="INTEGER"/>
           <column name="STREET" type="VARCHAR" size="150"/>
       </table>
  +
  +
  +    <!-- =================================================== -->
  +    <!-- Runtime reference setting test                      -->
  +    <!-- =================================================== -->
  +     <table name="RUNTIME_SETTING_MAIN">
  +        <column name="OBJ_ID" required="true" primaryKey="true" type="INTEGER"/>
  +        <column name="NAME" type="VARCHAR" size="150"/>
  +        <column name="FK_REF" type="INTEGER"/>
  +         <foreign-key foreignTable="RUNTIME_SETTING_ONE">
  +    	  <reference local="FK_REF" foreign="OBJ_ID"/>
  +	    </foreign-key>
  +    </table>
  +
  +    <table name="RUNTIME_SETTING_ONE">
  +        <column name="OBJ_ID" required="true" primaryKey="true" type="INTEGER"/>
  +        <column name="NAME" type="VARCHAR" size="150"/>
  +    </table>
  +
  +    <table name="RUNTIME_SETTING_MANY">
  +        <column name="OBJ_ID" required="true" primaryKey="true" type="INTEGER"/>
  +        <column name="NAME" type="VARCHAR" size="150"/>
  +        <column name="FK_MAIN" type="INTEGER"/>
  +        <foreign-key foreignTable="RUNTIME_SETTING_MAIN">
  +    	  <reference local="FK_MAIN" foreign="OBJ_ID"/>
  +	    </foreign-key>
  +    </table>
  +
  +
   
       <!-- =================================================== -->
       <!-- MultiplesDBTest - PB-api                            -->
  
  
  

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