Author: steve.ebersole(a)jboss.com
Date: 2006-09-01 16:30:43 -0400 (Fri, 01 Sep 2006)
New Revision: 10414
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java
Log:
test data cleanup
Modified:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml
===================================================================
---
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml 2006-09-01
20:30:22 UTC (rev 10413)
+++
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/Customer.hbm.xml 2006-09-01
20:30:43 UTC (rev 10414)
@@ -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:
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java
===================================================================
---
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java 2006-09-01
20:30:22 UTC (rev 10413)
+++
branches/Branch_3_2/Hibernate3/test/org/hibernate/test/typedmanytoone/TypedManyToOneTest.java 2006-09-01
20:30:43 UTC (rev 10414)
@@ -72,6 +72,7 @@
s.delete("ShippingAddress", ship);
s.flush();
assertNull( s.get( "ShippingAddress", ship.getAddressId() ) );
+ s.delete( cust );
t.commit();
s.close();
}
@@ -94,9 +95,9 @@
cust = (Customer) results.get(0);
assertNull( cust.getShippingAddress() );
assertNull( cust.getBillingAddress() );
+ s.delete( cust );
t.commit();
s.close();
-
}
protected String[] getMappings() {