db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r492869 - in /db/ojb/branches/OJB_1_0_RELEASE/src: schema/ojbtest-schema.xml test/org/apache/ojb/broker/AllTests.java test/org/apache/ojb/repository_junit_reference.xml
Date Fri, 05 Jan 2007 02:33:59 GMT
Author: arminw
Date: Thu Jan  4 18:33:58 2007
New Revision: 492869

URL: http://svn.apache.org/viewvc?view=rev&rev=492869
Log:
add new test case

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AllTests.java
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit_reference.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml?view=diff&rev=492869&r1=492868&r2=492869
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-schema.xml Thu Jan  4 18:33:58 2007
@@ -1912,4 +1912,29 @@
 		</foreign-key>
 	</table>
 
+    <table name="ONE_TO_ONE_PERS">
+		<column
+		   name="ID_"
+		   type="INTEGER"
+		   primaryKey="true"/>
+		<column
+		   name="NAME_"
+		   type="VARCHAR"
+           size="250"/>
+	</table>
+
+    <table name="ONE_TO_ONE_PASS">
+		<column
+		   name="ID_"
+		   type="INTEGER"
+		   primaryKey="true"/>
+		<column
+		   name="NUMBER_"
+		   type="VARCHAR"
+           size="250"/>
+		<foreign-key foreignTable="ONE_TO_ONE_PERS">
+			<reference local="ID_" foreign="ID_"/>
+		</foreign-key>
+	</table>
+
 </database>

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AllTests.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AllTests.java?view=diff&rev=492869&r1=492868&r2=492869
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AllTests.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/AllTests.java Thu Jan 
4 18:33:58 2007
@@ -92,6 +92,7 @@
         suite.addTestSuite(ObjectCacheTest.class);
         suite.addTestSuite(LocalCacheTest.class);
         suite.addTestSuite(ReferenceTest.class);
+        suite.addTestSuite(OneToOneWithoutFKTest.class);
         suite.addTestSuite(ComplexReferenceTest.class);
         suite.addTestSuite(ExtentAwarePathExpressionsTest.class);
         suite.addTestSuite(MultipleTableExtentAwareQueryTest.class);

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit_reference.xml
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit_reference.xml?view=diff&rev=492869&r1=492868&r2=492869
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit_reference.xml
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_junit_reference.xml
Thu Jan  4 18:33:58 2007
@@ -2124,4 +2124,58 @@
         </collection-descriptor>
     </class-descriptor>
 
+    <class-descriptor
+        class="org.apache.ojb.broker.OneToOneWithoutFKTest$Passport"
+        table="ONE_TO_ONE_PASS">
+        <field-descriptor
+                name="id"
+                column="ID_"
+                jdbc-type="INTEGER"
+                primarykey="true"
+                nullable="false"/>
+
+        <field-descriptor
+                name="number"
+                column="NUMBER_"
+                jdbc-type="VARCHAR"
+                nullable="false"
+                />
+
+        <reference-descriptor
+                name="person"
+                class-ref="org.apache.ojb.broker.OneToOneWithoutFKTest$Person"
+                auto-update="none"
+                auto-delete="none"
+                proxy="true">
+                        <foreignkey field-ref="id"/>
+       </reference-descriptor>
+    </class-descriptor>
+
+    <class-descriptor
+        class="org.apache.ojb.broker.OneToOneWithoutFKTest$Person"
+        table="ONE_TO_ONE_PERS">
+        <field-descriptor
+                name="id"
+                column="ID_"
+                jdbc-type="INTEGER"
+                primarykey="true"
+                nullable="false"
+                autoincrement="true"
+                />
+        <field-descriptor
+                name="name"
+                column="NAME_"
+                jdbc-type="VARCHAR"
+                nullable="false"
+                />
+        <reference-descriptor
+                name="passport"
+                class-ref="org.apache.ojb.broker.OneToOneWithoutFKTest$Passport"
+                auto-update="none"
+                auto-delete="none"
+                proxy="true">
+                        <foreignkey field-ref="id"/>
+       </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