HHH-4415 removed the ambigous dialect instance variable in TestCase. Instead use the static method Dialect.getDialect
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17713 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
a8047fe21a
commit
dba4de2d26
|
@ -37,7 +37,6 @@ public abstract class TestCase extends junit.framework.TestCase {
|
||||||
|
|
||||||
private static SessionFactory sessions;
|
private static SessionFactory sessions;
|
||||||
private static AnnotationConfiguration cfg;
|
private static AnnotationConfiguration cfg;
|
||||||
private static Dialect dialect;
|
|
||||||
private static Class<?> lastTestClass;
|
private static Class<?> lastTestClass;
|
||||||
private Session session;
|
private Session session;
|
||||||
|
|
||||||
|
@ -86,7 +85,6 @@ public abstract class TestCase extends junit.framework.TestCase {
|
||||||
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream( xmlFile );
|
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream( xmlFile );
|
||||||
getCfg().addInputStream( is );
|
getCfg().addInputStream( is );
|
||||||
}
|
}
|
||||||
setDialect( Dialect.getDialect() );
|
|
||||||
setSessions( getCfg().buildSessionFactory( /* new TestInterceptor() */ ) );
|
setSessions( getCfg().buildSessionFactory( /* new TestInterceptor() */ ) );
|
||||||
}
|
}
|
||||||
catch ( Exception e ) {
|
catch ( Exception e ) {
|
||||||
|
@ -261,12 +259,8 @@ public abstract class TestCase extends junit.framework.TestCase {
|
||||||
return sessions;
|
return sessions;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setDialect(Dialect dialect) {
|
|
||||||
TestCase.dialect = dialect;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Dialect getDialect() {
|
protected Dialect getDialect() {
|
||||||
return dialect;
|
return Dialect.getDialect();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static void setCfg(AnnotationConfiguration cfg) {
|
protected static void setCfg(AnnotationConfiguration cfg) {
|
||||||
|
|
|
@ -3,6 +3,7 @@ package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.dialect.Dialect;
|
||||||
import org.hibernate.test.annotations.TestCase;
|
import org.hibernate.test.annotations.TestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue