From 0e3378180ca056c176854778cef0051a448f5e78 Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Tue, 16 Mar 2010 05:18:43 +0000 Subject: [PATCH] HHH-5013 the previous select query should not to hold locks in TypeParameterTest#testSave git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19004 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../hibernate/test/typeparameters/TypeParameterTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/src/test/java/org/hibernate/test/typeparameters/TypeParameterTest.java b/testsuite/src/test/java/org/hibernate/test/typeparameters/TypeParameterTest.java index 0d94dd6470..d8a891c986 100644 --- a/testsuite/src/test/java/org/hibernate/test/typeparameters/TypeParameterTest.java +++ b/testsuite/src/test/java/org/hibernate/test/typeparameters/TypeParameterTest.java @@ -60,9 +60,10 @@ public class TypeParameterTest extends FunctionalTestCase { assertEquals("Non-Default value should not be changed", resultSet.getInt("VALUE_THREE"), 5); assertTrue("Default value should have been mapped to null", resultSet.getObject("VALUE_FOUR") == null); - deleteData(); + t.commit(); s.close(); + deleteData(); } public void testLoading() throws Exception { @@ -83,9 +84,10 @@ public class TypeParameterTest extends FunctionalTestCase { assertEquals("Default value incorrectly loaded", obj.getValueThree(), -1); assertEquals("Default value incorrectly loaded", obj.getValueFour(), -5); - deleteData(); + t.commit(); s.close(); + deleteData(); } private void initData() throws Exception {