Author: steve.ebersole(a)jboss.com
Date: 2006-09-01 16:30:22 -0400 (Fri, 01 Sep 2006)
New Revision: 10413
Modified:
trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml
trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java
Log:
test data cleanup
Modified: trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml 2006-09-01
20:26:37 UTC (rev 10412)
+++ trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml 2006-09-01
20:30:22 UTC (rev 10413)
@@ -27,7 +27,7 @@
<many-to-one name="billingAddress"
entity-name="BillingAddress"
- cascade="persist,save-update"
+ cascade="persist,save-update,delete"
fetch="join">
<column name="billingAddressId"/>
<formula>'BILLING'</formula>
@@ -35,7 +35,7 @@
<many-to-one name="shippingAddress"
entity-name="ShippingAddress"
- cascade="persist,save-update"
+ cascade="persist,save-update,delete"
fetch="join">
<column name="shippingAddressId"/>
<formula>'SHIPPING'</formula>
Modified: trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java
===================================================================
---
trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java 2006-09-01
20:26:37 UTC (rev 10412)
+++
trunk/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java 2006-09-01
20:30:22 UTC (rev 10413)
@@ -72,6 +72,7 @@
s.delete("ShippingAddress", ship);
s.flush();
assertNull( s.get( "ShippingAddress", ship.getAddressId() ) );
+ s.delete( cust );
t.commit();
s.close();
}
@@ -94,6 +95,7 @@
cust = (Customer) results.get(0);
assertNull( cust.getShippingAddress() );
assertNull( cust.getBillingAddress() );
+ s.delete( cust );
t.commit();
s.close();