Skip to content

Instantly share code, notes, and snippets.

@stliu
Created November 1, 2012 05:27
Show Gist options
  • Select an option

  • Save stliu/3992018 to your computer and use it in GitHub Desktop.

Select an option

Save stliu/3992018 to your computer and use it in GitHub Desktop.
diff --git a/hibernate-core/src/test/java/org/hibernate/test/annotations/query/QueryAndSQLTest.java b/hibernate-core/src/test/java/org/hibernate/test/annotations/query/QueryAndSQLTest.java
index 7e99db3..f20f8b7 100644
--- a/hibernate-core/src/test/java/org/hibernate/test/annotations/query/QueryAndSQLTest.java
+++ b/hibernate-core/src/test/java/org/hibernate/test/annotations/query/QueryAndSQLTest.java
@@ -62,7 +62,7 @@ import static org.junit.Assert.fail;
public class QueryAndSQLTest extends BaseCoreFunctionalTestCase {
@Override
protected boolean isCleanupTestDataRequired() {
- return true;
+ return false;
}
@Test
public void testNativeQueryWithFormulaAttribute() {
@@ -242,6 +242,7 @@ public class QueryAndSQLTest extends BaseCoreFunctionalTestCase {
tx = s.beginTransaction();
Statistics stats = sessionFactory().getStatistics();
stats.setStatisticsEnabled( true );
+ stats.clear();
Query q = s.getNamedQuery( "night&areaCached" );
q.setCacheable( true );
List result = q.list();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment