hibernateSchemaExport(true);
}
private void hibernateSchemaExport(boolean enhancedId) throws Exception {
SingleConnectionDataSource ds = new SingleConnectionDataSource(connection, true);
Configuration cfg = createSpringPackageScanningConfiguration(enhancedId);
Properties properties = new Properties();
properties.put(Environment.DATASOURCE, ds);
cfg.addProperties(properties);