Search in sources :

Example 1 with StandardDialectResolver

use of org.hibernate.service.jdbc.dialect.internal.StandardDialectResolver 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;
}
Also used : StandardDialectResolver(org.hibernate.service.jdbc.dialect.internal.StandardDialectResolver) DialectFactoryImpl(org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl) MetaDataDialect(org.hibernate.cfg.reveng.dialect.MetaDataDialect) Dialect(org.hibernate.dialect.Dialect) ClassLoaderServiceImpl(org.hibernate.service.classloading.internal.ClassLoaderServiceImpl)

Aggregations

MetaDataDialect (org.hibernate.cfg.reveng.dialect.MetaDataDialect)1 Dialect (org.hibernate.dialect.Dialect)1 ClassLoaderServiceImpl (org.hibernate.service.classloading.internal.ClassLoaderServiceImpl)1 DialectFactoryImpl (org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl)1 StandardDialectResolver (org.hibernate.service.jdbc.dialect.internal.StandardDialectResolver)1