cfg.addProperties(properties);
SchemaExport export = new SchemaExport(cfg);
export.execute(true, true, false, false);
Database hibernateDatabase = new HibernateClassicDatabase();
hibernateDatabase.setDefaultSchemaName("PUBLIC");
hibernateDatabase.setDefaultCatalogName("TESTDB");
hibernateDatabase.setConnection(new JdbcConnection(new HibernateConnection("hibernate:classic:" + HIBERNATE_CONFIG_FILE)));
Liquibase liquibase = new Liquibase((String) null, new ClassLoaderResourceAccessor(), database);
DiffResult diffResult = liquibase.diff(hibernateDatabase, database, compareControl);
ignoreDatabaseChangeLogTable(diffResult);