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
This commit is contained in:
Strong Liu 2010-03-16 05:18:43 +00:00
parent 7ea9c8fe76
commit 0e3378180c
1 changed files with 4 additions and 2 deletions

View File

@ -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 {