db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olegn...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb repository_junit_otm.xml
Date Sat, 28 Feb 2004 21:40:48 GMT
olegnitz    2004/02/28 13:40:48

  Modified:    src/test/org/apache/ojb repository_junit_otm.xml
  Log:
  Added new classes for the DependentTest
  
  Revision  Changes    Path
  1.2       +70 -1     db-ojb/src/test/org/apache/ojb/repository_junit_otm.xml
  
  Index: repository_junit_otm.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit_otm.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- repository_junit_otm.xml	9 Dec 2003 13:46:46 -0000	1.1
  +++ repository_junit_otm.xml	28 Feb 2004 21:40:47 -0000	1.2
  @@ -121,5 +121,74 @@
     </reference-descriptor>
      </class-descriptor>
   
  +<class-descriptor class="org.apache.ojb.otm.AbstractPerson">
  +    <extent-class class-ref="org.apache.ojb.otm.LegalPerson"/>
  +    <extent-class class-ref="org.apache.ojb.otm.NaturalPerson"/>
  +</class-descriptor>
  +
  +<class-descriptor class="org.apache.ojb.otm.Debitor"
  +        table="OTM_DEBITOR">
  +  <field-descriptor
  +     name="id"
  +     column="ID"
  +     jdbc-type="INTEGER"
  +     primarykey="true"
  +     autoincrement="true"
  +  />
  +  <field-descriptor name="personId"
  +                    column="PERSON_ID"
  +                    jdbc-type="INTEGER"/>
  +  <reference-descriptor name="abstractPerson"
  +                        class-ref="org.apache.ojb.otm.AbstractPerson"
  +                        otm-dependent="true">
  +    <foreignkey field-ref="personId"/>
  +  </reference-descriptor>
  +</class-descriptor>
  +
  +<class-descriptor class="org.apache.ojb.otm.Address2"
  +        table="OTM_ADDRESS2">
  +  <field-descriptor
  +     name="id"
  +     column="ID"
  +     jdbc-type="INTEGER"
  +     primarykey="true"
  +     autoincrement="true"
  +  />
  +  <field-descriptor name="personId"
  +                    column="PERSON_ID"
  +                    jdbc-type="INTEGER"/>
  +</class-descriptor>
  +
  +<class-descriptor class="org.apache.ojb.otm.LegalPerson"
  +        table="OTM_PERSON2">
  +  <field-descriptor
  +     name="id"
  +     column="ID"
  +     jdbc-type="INTEGER"
  +     primarykey="true"
  +     autoincrement="true"
  +  />
  +  <collection-descriptor name="addresses"
  +                         element-class-ref="org.apache.ojb.otm.Address2"
  +                         otm-dependent="true">
  +    <inverse-foreignkey field-ref="personId"/>
  +  </collection-descriptor>
  +</class-descriptor>
  +
  +<class-descriptor class="org.apache.ojb.otm.NaturalPerson"
  +        table="OTM_PERSON3">
  +  <field-descriptor
  +     name="id"
  +     column="ID"
  +     jdbc-type="INTEGER"
  +     primarykey="true"
  +     autoincrement="true"
  +  />
  +  <collection-descriptor name="addresses"
  +                         element-class-ref="org.apache.ojb.otm.Address2"
  +                         otm-dependent="true">
  +    <inverse-foreignkey field-ref="personId"/>
  +  </collection-descriptor>
  +</class-descriptor>
   
   <!-- Mapping of classes used in junit tests and tutorials ends here -->
  
  
  

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