Created
November 1, 2012 05:27
-
-
Save stliu/3992018 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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