final org.hibernate.cfg.Configuration config = new ValidationConfiguration();
config.setProperty("hibernate.dialect", sfi.getDialect().getClass().getCanonicalName());
config.setProperty("hibernate.hbm2ddl.auto", "validate");
config.setProperty("hibernate.show_sql", "true");
config.buildMappings();
final SchemaExport export = new SchemaExport(config, connection);