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 ar...@apache.org on 2004/04/06 21:22:11 UTC

cvs commit: db-ojb/src/test/org/apache/ojb repository_junit_reference.xml

arminw      2004/04/06 12:22:10

  Modified:    src/test/org/apache/ojb repository_junit_reference.xml
  Log:
  - add more PK fields to M2NTest test objects to simulate
  multiple PK persistent capable objects
  
  Revision  Changes    Path
  1.11      +38 -2     db-ojb/src/test/org/apache/ojb/repository_junit_reference.xml
  
  Index: repository_junit_reference.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit_reference.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- repository_junit_reference.xml	5 Apr 2004 13:58:59 -0000	1.10
  +++ repository_junit_reference.xml	6 Apr 2004 19:22:10 -0000	1.11
  @@ -1,7 +1,7 @@
   <!-- Mapping of classes used in junit tests -->
   <!-- @version $Id$ -->
   <!--
  -#/* Copyright 2003-2004 The Apache Software Foundation
  +/* Copyright 2003-2004 The Apache Software Foundation
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -1101,6 +1101,14 @@
           />
   
           <field-descriptor
  +            name="idInt2"
  +            column="OBJ_ID2_INT"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +            autoincrement="true"
  +        />
  +
  +        <field-descriptor
               name="idStr"
               column="OBJ_ID_STR"
               jdbc-type="VARCHAR"
  @@ -1129,8 +1137,10 @@
               indirection-table="M2N_TEST_ROLE"
           >
               <fk-pointing-to-this-class column="MOVIE_ID_INT"/>
  +            <fk-pointing-to-this-class column="MOVIE_ID2_INT"/>
               <fk-pointing-to-this-class column="MOVIE_ID_STR"/>
               <fk-pointing-to-element-class column="ACTOR_ID"/>
  +            <fk-pointing-to-element-class column="ACTOR_ID2"/>
           </collection-descriptor>
       </class-descriptor>
   
  @@ -1145,6 +1155,15 @@
               primarykey="true"
               autoincrement="true"
           />
  +
  +        <field-descriptor
  +            name="id2"
  +            column="OBJ_ID2"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +            autoincrement="true"
  +        />
  +
           <field-descriptor
               name="name"
               column="NAME"
  @@ -1161,7 +1180,9 @@
               indirection-table="M2N_TEST_ROLE"
           >
               <fk-pointing-to-this-class column="ACTOR_ID"/>
  +            <fk-pointing-to-this-class column="ACTOR_ID2"/>
               <fk-pointing-to-element-class column="MOVIE_ID_INT"/>
  +            <fk-pointing-to-element-class column="MOVIE_ID2_INT"/>
               <fk-pointing-to-element-class column="MOVIE_ID_STR"/>
           </collection-descriptor>
       </class-descriptor>
  @@ -1178,8 +1199,23 @@
           />
   
           <field-descriptor
  +            name="actorId2"
  +            column="ACTOR_ID2"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +        />
  +
  +        <field-descriptor
               name="movieIntId"
               column="MOVIE_ID_INT"
  +            jdbc-type="INTEGER"
  +            primarykey="true"
  +            autoincrement="true"
  +        />
  +
  +        <field-descriptor
  +            name="movieIntId2"
  +            column="MOVIE_ID2_INT"
               jdbc-type="INTEGER"
               primarykey="true"
               autoincrement="true"
  
  
  

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