From: Dan M. <dan...@us...> - 2004-12-21 08:52:56
|
Update of /cvsroot/jcframework/Nunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4418/Nunit Modified Files: AtomsFramework.xml original db1.mdb Log Message: Add a test case to check that for an inherited child class that has an association defined in the XML mapping file, and does not have an instance of the association in the database, the framework does not create the object in the association. Index: original db1.mdb =================================================================== RCS file: /cvsroot/jcframework/Nunit/original db1.mdb,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 Binary files /tmp/cvs5A0nHQ and /tmp/cvshmfu1q differ Index: AtomsFramework.xml =================================================================== RCS file: /cvsroot/jcframework/Nunit/AtomsFramework.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- AtomsFramework.xml 19 Dec 2004 22:44:46 -0000 1.13 +++ AtomsFramework.xml 21 Dec 2004 08:52:44 -0000 1.14 @@ -186,6 +186,8 @@ <attribute name="ModifiedDate" column="ModifiedDate" timestamp="true"/> <attribute name="Id" column="id" find="true" /> <attribute name="I" column="i"/> + <attribute name="M" /> + <attribute name="MOID" column="mOID" /> </class> <class name="H" table="tblH" database="MSA" superclass="C" namespace="NunitTests.InheritedClasses"> <attribute name="OIDValue" column="oid" key="primary" reference="OIDValue"/> @@ -214,6 +216,14 @@ <attribute name="ModifiedDate" column="ModifiedDate" timestamp="true"/> <attribute name="Id" column="id" find="true" /> <attribute name="I" column="i"/> + <attribute name="M"/> + <attribute name="MOID" column="mOID"/> + </class> + <class name="M" table="tblK" database="MSA" namespace="NunitTests.InheritedClasses"> + <attribute name="OIDValue" column="oid" key="primary" reference="OIDValue"/> + <attribute name="CreatedDate" column="CreatedDate" timestamp="true"/> + <attribute name="ModifiedDate" column="ModifiedDate" timestamp="true"/> + <attribute name="I" column="i"/> </class> <association fromClass="NunitTests.InheritedClasses.A" toClass="NunitTests.InheritedClasses.B" @@ -235,6 +245,26 @@ inverse="false"> <entry fromAttribute="AOID" toAttribute="OIDValue"/> </association> + <association fromClass="NunitTests.InheritedClasses.G" + toClass="NunitTests.InheritedClasses.M" + cardinality="oneToOne" + target="M" + retrieveAutomatic="true" + saveAutomatic="true" + deleteAutomatic="true" + inverse="false"> + <entry fromAttribute="MOID" toAttribute="OIDValue"/> + </association> + <association fromClass="NunitTests.InheritedClasses.K" + toClass="NunitTests.InheritedClasses.M" + cardinality="oneToOne" + target="M" + retrieveAutomatic="true" + saveAutomatic="true" + deleteAutomatic="true" + inverse="false"> + <entry fromAttribute="MOID" toAttribute="OIDValue"/> + </association> <association fromClass="NunitTests.InheritedClasses.A" toClass="NunitTests.InheritedClasses.C" cardinality="oneToOne" @@ -246,7 +276,6 @@ <entry fromAttribute="COID" toAttribute="OIDValue"/> </association> - <class name="ManyToManyA" table="ManyToManyA" database="MSA" namespace="NunitTests.InheritedClasses"> <attribute name="GUIDValue" column="GuidValue" key="primary"/> <attribute name="Description" column="description" /> |