use of org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method newDialect.
@Override
public String newDialect(Properties properties, Connection connection) {
DialectFactoryImpl dialectFactory = new DialectFactoryImpl();
dialectFactory.setClassLoaderService(new ClassLoaderServiceImpl());
dialectFactory.setDialectResolver(new StandardDialectResolver());
Dialect dialect = dialectFactory.buildDialect(properties, connection);
return dialect != null ? dialect.toString() : null;
}
Aggregations