Author: steve.ebersole(a)jboss.com
Date: 2006-09-01 16:26:21 -0400 (Fri, 01 Sep 2006)
New Revision: 10411
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/Customer.hbm.xml
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/TypedOneToOneTest.java
Log:
test data cleanup
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/Customer.hbm.xml
===================================================================
---
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/Customer.hbm.xml 2006-09-01
20:06:15 UTC (rev 10410)
+++
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/Customer.hbm.xml 2006-09-01
20:26:21 UTC (rev 10411)
@@ -26,13 +26,13 @@
<one-to-one name="billingAddress"
entity-name="BillingAddress"
property-ref="customer"
- cascade="persist"
+ cascade="persist, delete"
fetch="join"/>
<one-to-one name="shippingAddress"
entity-name="ShippingAddress"
property-ref="customer"
- cascade="persist"
+ cascade="persist, delete"
fetch="join"/>
</class>
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/TypedOneToOneTest.java
===================================================================
---
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/TypedOneToOneTest.java 2006-09-01
20:06:15 UTC (rev 10410)
+++
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedonetoone/TypedOneToOneTest.java 2006-09-01
20:26:21 UTC (rev 10411)
@@ -61,10 +61,9 @@
assertEquals( "30326", cust.getShippingAddress().getZip() );
assertEquals( "BILLING", cust.getBillingAddress().getAddressId().getType()
);
assertEquals( "SHIPPING", cust.getShippingAddress().getAddressId().getType()
);
-
+ s.delete( cust );
t.commit();
s.close();
-
}
public void testCreateQueryNull() {