Out.error(SchemaValidator.class, "The database requires rebuilding");
// Generate schema from the mapping file
DbGenerator generator = new DbGenerator(adapter, dataMap);
generator.setShouldCreateFKConstraints(adapter.supportsFkConstraints());
generator.setShouldCreatePKSupport(!adapter.supportsGeneratedKeys());
generator.setShouldCreateTables(true);
generator.setShouldDropPKSupport(true);
generator.setShouldDropTables(true);
generator.runGenerator(dataSource);