db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r359299 - /db/torque/test/trunk/test-project/src/schema/test-schema.xml
Date Tue, 27 Dec 2005 22:08:03 GMT
Author: tfischer
Date: Tue Dec 27 14:08:00 2005
New Revision: 359299

URL: http://svn.apache.org/viewcvs?rev=359299&view=rev
Log:
added test tables for a circular reference

Modified:
    db/torque/test/trunk/test-project/src/schema/test-schema.xml

Modified: db/torque/test/trunk/test-project/src/schema/test-schema.xml
URL: http://svn.apache.org/viewcvs/db/torque/test/trunk/test-project/src/schema/test-schema.xml?rev=359299&r1=359298&r2=359299&view=diff
==============================================================================
--- db/torque/test/trunk/test-project/src/schema/test-schema.xml (original)
+++ db/torque/test/trunk/test-project/src/schema/test-schema.xml Tue Dec 27 14:08:00 2005
@@ -329,4 +329,41 @@
     />
   </table>
 
+  <table name="CIRCULAR_REFERENCE_A" description="Table to test circular references">
+    <column
+      name="CIRCULAR_REFERENCE_A_ID"
+      required="true"
+      primaryKey="true"
+      type="INTEGER"
+    />
+    <column
+      name="CIRCULAR_REFERENCE_B_ID"
+      type="INTEGER"
+      required="false"
+    />
+    <foreign-key foreignTable="CIRCULAR_REFERENCE_B">
+      <reference 
+        local="CIRCULAR_REFERENCE_B_ID" 
+        foreign="CIRCULAR_REFERENCE_B_ID"/>
+    </foreign-key>
+  </table>
+  
+  <table name="CIRCULAR_REFERENCE_B" description="Table to test circular references">
+    <column
+      name="CIRCULAR_REFERENCE_B_ID"
+      required="true"
+      primaryKey="true"
+      type="INTEGER"
+    />
+    <column
+      name="CIRCULAR_REFERENCE_A_ID"
+      type="INTEGER"
+      required="false"
+    />
+    <foreign-key foreignTable="CIRCULAR_REFERENCE_A">
+      <reference 
+        local="CIRCULAR_REFERENCE_A_ID" 
+        foreign="CIRCULAR_REFERENCE_A_ID"/>
+    </foreign-key>
+  </table>
 </database>



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


Mime
View raw message