use of org.hibernate.service.jdbc.dialect.spi.DialectFactory in project jbosstools-hibernate by jbosstools.
the class ColumnFacadeImpl method getSqlType.
@Override
public String getSqlType(IConfiguration configuration) {
Column targetColumn = (Column) getTarget();
Configuration configurationTarget = (Configuration) ((IFacade) configuration).getTarget();
Properties properties = configurationTarget.getProperties();
ServiceRegistryBuilder ssrb = new ServiceRegistryBuilder();
ssrb.applySettings(properties);
ServiceRegistry ssr = ssrb.buildServiceRegistry();
DialectFactory df = ssr.getService(DialectFactory.class);
Dialect dialectTarget = df.buildDialect(properties, null);
return targetColumn.getSqlType(dialectTarget, configurationTarget.buildMapping());
}
Aggregations