[HHH-10588] use H2Dialect in ConnectionsReleaseTest

This commit is contained in:
Martin Simka 2016-03-04 13:22:43 +01:00 committed by Vlad Mihalcea
parent 3e959005ed
commit e591b70cf7
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder; import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.boot.spi.MetadataImplementor; import org.hibernate.boot.spi.MetadataImplementor;
import org.hibernate.cfg.Environment; import org.hibernate.cfg.Environment;
import org.hibernate.dialect.H2Dialect;
import org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl; import org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl;
import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider; import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider;
import org.hibernate.tool.hbm2ddl.SchemaUpdate; import org.hibernate.tool.hbm2ddl.SchemaUpdate;
@ -60,6 +61,7 @@ public class ConnectionsReleaseTest extends BaseUnitTestCase {
ssr = new StandardServiceRegistryBuilder() ssr = new StandardServiceRegistryBuilder()
.addService( ConnectionProvider.class, connectionProvider ) .addService( ConnectionProvider.class, connectionProvider )
.applySetting(Environment.DIALECT, H2Dialect.class.getName())
.build(); .build();
metadata = (MetadataImplementor) new MetadataSources( ssr ) metadata = (MetadataImplementor) new MetadataSources( ssr )
.addAnnotatedClass( Thing.class ) .addAnnotatedClass( Thing.class )