if (dialectName == null) {
throw new IllegalArgumentException("A 'dialect' has to be specified.");
}
LOG.info("Found dialect "+dialectName);
internalPersistenceUnitManager.preparePersistenceUnitInfos();
PersistenceUnitInfo persistenceUnitInfo = internalPersistenceUnitManager.obtainDefaultPersistenceUnitInfo();
HibernateJpaVendorAdapter jpaVendorAdapter = new HibernateJpaVendorAdapter();
jpaVendorAdapter.setDatabasePlatform(dialectName);
String enhancedId = connection.getProperties().getProperty("hibernate.enhanced_id", "false");