+ public void testSchemaExport() {
+ Configuration config = new Configuration();
+ for (String mappingFile: new AuthorizationMappingFiles()) {
+ config.addResource(mappingFile);
+ }
+ config.setProperty("hibernate.dialect", MySQL5InnoDBDialect.class.getName());
+ SchemaExport exporter = new SchemaExport(config);
+ exporter.setOutputFile("target/mysql5.schema.sql");
+ exporter.create(true,false);
+ }
+