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 Wed, 09 Apr 2003 20:45:20 GMT
brj         2003/04/09 13:45:20

  Modified:    src/test/org/apache/ojb repository_junit.xml
  Log:
  fix description of NEWS and PAPER : collection-descriptor is not inherited
  
  Revision  Changes    Path
  1.58      +17 -9     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.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- repository_junit.xml	9 Apr 2003 13:33:31 -0000	1.57
  +++ repository_junit.xml	9 Apr 2003 20:45:20 -0000	1.58
  @@ -124,7 +124,7 @@
         />
         <collection-descriptor
            name="allArticlesInGroup"
  -         element-class-ref="org.apache.ojb.broker.Article"
  +         element-class-ref="org.apache.ojb.broker.AbstractArticle"
            auto-retrieve="true"
            auto-update="true"
            auto-delete="false"
  @@ -3522,7 +3522,11 @@
   	<class-descriptor class="org.apache.ojb.broker.BaseContentImpl">
   		<extent-class class-ref="org.apache.ojb.broker.News"/>
   		<extent-class class-ref="org.apache.ojb.broker.Paper"/>
  -		<field-descriptor id="1" name="id" column="ID" jdbc-type="INTEGER" primarykey="true"/>
  +	</class-descriptor>
  +
  +	<class-descriptor class="org.apache.ojb.broker.News" table="NEWS">
  +			<field-descriptor id="1" name="id" column="ID" jdbc-type="INTEGER" primarykey="true"/>
  +			<field-descriptor id="2" name="headline" column="HEADLINE" jdbc-type="VARCHAR"/>
       	<collection-descriptor 	name="qualifiers"
                              					element-class-ref="org.apache.ojb.broker.Qualifier"
                              					auto-retrieve="true"
  @@ -3534,15 +3538,19 @@
       		</collection-descriptor>
   	</class-descriptor>
   
  -	<class-descriptor class="org.apache.ojb.broker.News" table="NEWS">
  -			<field-descriptor id="1" name="id" column="ID" jdbc-type="INTEGER" primarykey="true"/>
  -			<field-descriptor id="2" name="headline" column="HEADLINE" jdbc-type="VARCHAR"/>
  -	</class-descriptor>
  -
   	<class-descriptor class="org.apache.ojb.broker.Paper" table="PAPER">
   			<field-descriptor id="1" name="id" column="ID" jdbc-type="INTEGER" primarykey="true"/>
   			<field-descriptor id="2" name="date" column="DATE" jdbc-type="VARCHAR"/>
  -			<field-descriptor id="3" name="author" column="author" jdbc-type="VARCHAR"/>	
	
  +			<field-descriptor id="3" name="author" column="author" jdbc-type="VARCHAR"/>
  +    	<collection-descriptor 	name="qualifiers"
  +                           					element-class-ref="org.apache.ojb.broker.Qualifier"
  +                           					auto-retrieve="true"
  +                           					auto-update="false"
  +                           					auto-delete="false"
  +                           					indirection-table="CONTENT_QUALIFIER">
  +				<fk-pointing-to-this-class column="CONTENT_ID"/>
  +         		<fk-pointing-to-element-class column="QUALIFIER_ID"/>
  +    		</collection-descriptor>
   	</class-descriptor>
   
   	<class-descriptor class="org.apache.ojb.broker.Qualifier">
  @@ -3755,4 +3763,4 @@
           </reference-descriptor>
       </class-descriptor>
   
  -<!-- Mapping of classes used in junit tests and tutorials ends here -->
  +<!-- Mapping of classes used in junit tests and tutorials ends here -->
  \ No newline at end of file
  
  
  

Mime
View raw message