Search in sources :

Example 1 with DialectFactoryImpl

use of org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl in project hibernate-orm by hibernate.

the class DialectFactoryTest method setUp.

@Before
public void setUp() {
    final BootstrapServiceRegistry bootReg = new BootstrapServiceRegistryBuilder().applyClassLoader(DialectFactoryTest.class.getClassLoader()).build();
    registry = new StandardServiceRegistryBuilder(bootReg).build();
    dialectFactory = new DialectFactoryImpl();
    dialectFactory.injectServices((ServiceRegistryImplementor) registry);
}
Also used : BootstrapServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistryBuilder) StandardServiceRegistryBuilder(org.hibernate.boot.registry.StandardServiceRegistryBuilder) DialectFactoryImpl(org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl) BootstrapServiceRegistry(org.hibernate.boot.registry.BootstrapServiceRegistry) Before(org.junit.Before)

Aggregations

BootstrapServiceRegistry (org.hibernate.boot.registry.BootstrapServiceRegistry)1 BootstrapServiceRegistryBuilder (org.hibernate.boot.registry.BootstrapServiceRegistryBuilder)1 StandardServiceRegistryBuilder (org.hibernate.boot.registry.StandardServiceRegistryBuilder)1 DialectFactoryImpl (org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl)1 Before (org.junit.Before)1