diff --git a/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java b/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java index 3deba419d1..31f8a31111 100644 --- a/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java +++ b/annotations/src/test/java/org/hibernate/test/annotations/TestCase.java @@ -37,7 +37,6 @@ public abstract class TestCase extends junit.framework.TestCase { private static SessionFactory sessions; private static AnnotationConfiguration cfg; - private static Dialect dialect; private static Class lastTestClass; private Session session; @@ -86,7 +85,6 @@ public abstract class TestCase extends junit.framework.TestCase { InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream( xmlFile ); getCfg().addInputStream( is ); } - setDialect( Dialect.getDialect() ); setSessions( getCfg().buildSessionFactory( /* new TestInterceptor() */ ) ); } catch ( Exception e ) { @@ -261,12 +259,8 @@ public abstract class TestCase extends junit.framework.TestCase { return sessions; } - private void setDialect(Dialect dialect) { - TestCase.dialect = dialect; - } - protected Dialect getDialect() { - return dialect; + return Dialect.getDialect(); } protected static void setCfg(AnnotationConfiguration cfg) { diff --git a/annotations/src/test/java/org/hibernate/test/annotations/lob/LobTest.java b/annotations/src/test/java/org/hibernate/test/annotations/lob/LobTest.java index f601317c92..29e842f8b6 100644 --- a/annotations/src/test/java/org/hibernate/test/annotations/lob/LobTest.java +++ b/annotations/src/test/java/org/hibernate/test/annotations/lob/LobTest.java @@ -3,6 +3,7 @@ package org.hibernate.test.annotations.lob; import org.hibernate.Session; import org.hibernate.Transaction; +import org.hibernate.dialect.Dialect; import org.hibernate.test.annotations.TestCase; /**