db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r373106 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit.xml
Date Sat, 28 Jan 2006 09:06:13 GMT
Author: brj
Date: Sat Jan 28 01:06:10 2006
New Revision: 373106

URL: http://svn.apache.org/viewcvs?rev=373106&view=rev
Log:
bugfix and testcase for quoted names

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit.xml
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit.xml?rev=373106&r1=373105&r2=373106&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit.xml Sat Jan 28
01:06:10 2006
@@ -2849,6 +2849,56 @@
             jdbc-type="VARCHAR"
         />
     </class-descriptor>
+    
+    <!-- Testclass for quoting table and columns -->
+   <class-descriptor
+   	  class="org.apache.ojb.broker.QuotedTest$QuotedArticle"
+   	  proxy="dynamic"
+   	  table="'QUOTED_ARTICLE'"
+   >
+      <field-descriptor
+         name="articleId"
+         column="'ARTICLE_ID'"
+         jdbc-type="INTEGER"
+         primarykey="true"
+         autoincrement="true"
+      />
+      <field-descriptor
+         name="articleName"
+         column="'ARTICLE_NAME'"
+         jdbc-type="VARCHAR"
+      />
+      <field-descriptor
+         name="productGroupId"
+         column="GROUP_ID"
+         jdbc-type="INTEGER"
+         access="anonymous"
+      />
+      <field-descriptor
+         name="unit"
+         column="'UNIT'"
+         jdbc-type="VARCHAR"
+      />
+      <field-descriptor
+         name="price"
+         column="PRICE"
+         jdbc-type="FLOAT"
+      />
+      <field-descriptor
+         name="stock"
+         column="STOCK"
+         jdbc-type="INTEGER"
+      />
+      <reference-descriptor
+            name="productGroup"
+            class-ref="org.apache.ojb.broker.ProductGroup"
+	        auto-retrieve="true"
+    	    auto-update="true"
+      >
+         <documentation>this is the reference to an articles productgroup</documentation>
+         <foreignkey field-ref="productGroupId"/>
+      </reference-descriptor>
+   </class-descriptor>
 
     <!-- ************************************************* -->
     <!-- Class to Test Field type            			   -->



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