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_odmg.xml
Date Sat, 04 Dec 2004 14:45:37 GMT
arminw      2004/12/04 06:45:37

  Modified:    src/test/org/apache/ojb Tag: OJB_1_0_RELEASE
                        repository_junit_odmg.xml
  Log:
  add metadata for new ObjectImageTest
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.13.2.4  +206 -1    db-ojb/src/test/org/apache/ojb/repository_junit_odmg.xml
  
  Index: repository_junit_odmg.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit_odmg.xml,v
  retrieving revision 1.13.2.3
  retrieving revision 1.13.2.4
  diff -u -r1.13.2.3 -r1.13.2.4
  --- repository_junit_odmg.xml	4 Dec 2004 14:11:50 -0000	1.13.2.3
  +++ repository_junit_odmg.xml	4 Dec 2004 14:45:37 -0000	1.13.2.4
  @@ -1549,4 +1549,209 @@
         </reference-descriptor>
      </class-descriptor>
   
  +
  +<!-- =================================================== -->
  +<!--     Mapping for ImageContainerTest                  -->
  +<!-- =================================================== -->
  +<class-descriptor
  +    class="org.apache.ojb.odmg.ObjectImageTest$Book"
  +    table="IC_BOOK"
  +>
  +    <field-descriptor
  +        name="id"
  +        column="OJB_ID"
  +        jdbc-type="INTEGER"
  +        primarykey="true"
  +        autoincrement="true"
  +    />
  +
  +    <field-descriptor
  +         name="title"
  +         column="TITLE"
  +         jdbc-type="VARCHAR"
  +    />
  +
  +    <field-descriptor
  +        name="publicationDate"
  +        column="P_DATE"
  +        jdbc-type="DATE"
  +        conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimestampFieldConversion"
  +    />
  +
  +    <field-descriptor
  +         name="cover"
  +         column="COVER"
  +         jdbc-type="LONGVARBINARY"
  +    />
  +
  +    <field-descriptor
  +        name="version"
  +        column="OJB_VERSION"
  +        jdbc-type="INTEGER"
  +        locking="true"
  +    />
  +
  +    <field-descriptor
  +        name="publisherFk"
  +        column="PUBLISHER_FK"
  +        jdbc-type="INTEGER"
  +        access="anonymous"
  +    />
  +
  +    <reference-descriptor name="publisher"
  +        class-ref="org.apache.ojb.odmg.ObjectImageTest$Publisher"
  +        proxy="false"
  +        auto-retrieve="true"
  +        auto-update="false"
  +        auto-delete="false"
  +    >
  +        <foreignkey field-ref="publisherFk" />
  +    </reference-descriptor>
  +
  +    <collection-descriptor
  +        name="reviews"
  +        element-class-ref="org.apache.ojb.odmg.ObjectImageTest$Review"
  +        proxy="false"
  +        auto-retrieve="true"
  +        auto-update="false"
  +        auto-delete="false"
  +    >
  +            <inverse-foreignkey field-ref="fkBook"/>
  +    </collection-descriptor>
  +
  +    <collection-descriptor
  +            name="authors"
  +            collection-class="org.apache.ojb.broker.util.collections.ManageableArrayList"
  +            element-class-ref="org.apache.ojb.odmg.ObjectImageTest$Author"
  +            auto-retrieve="true"
  +            auto-update="false"
  +            auto-delete="false"
  +            indirection-table="IC_PUBLICATION"
  +        >
  +            <fk-pointing-to-this-class column="BOOK_ID"/>
  +            <fk-pointing-to-element-class column="AUTHOR_ID"/>
  +     </collection-descriptor>
  +</class-descriptor>
  +
  +<class-descriptor class="org.apache.ojb.odmg.ObjectImageTest$Publisher">
  +    <extent-class class-ref="org.apache.ojb.odmg.ObjectImageTest$PublisherImpl" />
  +</class-descriptor>
  +
  +<class-descriptor
  +    class="org.apache.ojb.odmg.ObjectImageTest$PublisherImpl"
  +    table="IC_PUBLISHER"
  +>
  +    <field-descriptor
  +        name="id"
  +        column="OJB_ID"
  +        jdbc-type="INTEGER"
  +        primarykey="true"
  +        autoincrement="true"
  +    />
  +
  +    <field-descriptor
  +         name="name"
  +         column="NAME"
  +         jdbc-type="VARCHAR"
  +    />
  +
  +    <field-descriptor
  +        name="version"
  +        column="OJB_VERSION"
  +        jdbc-type="INTEGER"
  +        locking="true"
  +    />
  +
  +</class-descriptor>
  +
  +<class-descriptor
  +    class="org.apache.ojb.odmg.ObjectImageTest$Author"
  +    table="IC_AUTHOR"
  +>
  +    <field-descriptor
  +        name="id"
  +        column="OJB_ID"
  +        jdbc-type="INTEGER"
  +        primarykey="true"
  +        autoincrement="true"
  +    />
  +
  +    <field-descriptor
  +         name="name"
  +         column="NAME"
  +         jdbc-type="VARCHAR"
  +    />
  +
  +    <field-descriptor
  +        name="version"
  +        column="OJB_VERSION"
  +        jdbc-type="INTEGER"
  +        locking="true"
  +    />
  +
  +    <collection-descriptor
  +            name="books"
  +            collection-class="org.apache.ojb.broker.util.collections.ManageableArrayList"
  +            element-class-ref="org.apache.ojb.odmg.ObjectImageTest$Book"
  +            auto-retrieve="true"
  +            auto-update="false"
  +            auto-delete="false"
  +            indirection-table="IC_PUBLICATION"
  +        >
  +            <fk-pointing-to-this-class column="AUTHOR_ID"/>
  +            <fk-pointing-to-element-class column="BOOK_ID"/>
  +     </collection-descriptor>
  +
  +</class-descriptor>
  +
  +<class-descriptor
  +    class="org.apache.ojb.odmg.ObjectImageTest$Review"
  +    table="IC_REVIEW"
  +>
  +    <field-descriptor
  +        name="id"
  +        column="OJB_ID"
  +        jdbc-type="INTEGER"
  +        primarykey="true"
  +        autoincrement="true"
  +    />
  +
  +    <field-descriptor
  +         name="summary"
  +         column="SUMMARY"
  +         jdbc-type="VARCHAR"
  +    />
  +
  +    <field-descriptor
  +        name="fkBook"
  +        column="FK_BOOK"
  +        jdbc-type="INTEGER"
  +    />
  +
  +    <field-descriptor
  +        name="version"
  +        column="OJB_VERSION"
  +        jdbc-type="INTEGER"
  +        locking="true"
  +    />
  +
  +    <field-descriptor
  +        name="authorFk"
  +        column="AUTHOR_FK"
  +        jdbc-type="INTEGER"
  +        access="anonymous"
  +    />
  +
  +    <reference-descriptor name="author"
  +        class-ref="org.apache.ojb.odmg.ObjectImageTest$Author"
  +        proxy="false"
  +        auto-retrieve="true"
  +        auto-update="false"
  +        auto-delete="false"
  +    >
  +        <foreignkey field-ref="authorFk" />
  +    </reference-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