DDL is not generated when using old metamodel

This commit is contained in:
Strong Liu 2013-05-22 14:02:01 -07:00
parent c0fa63579b
commit c397221483
1 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,9 @@ public abstract class BaseCoreFunctionalTestCase extends BaseFunctionalTestCase
properties.put( Environment.CACHE_REGION_FACTORY, CachingRegionFactory.class.getName() );
properties.put( AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
properties.put( Environment.DIALECT, getDialect().getClass().getName() );
if(createSchema()){
properties.put( AvailableSettings.HBM2DDL_AUTO, "create-drop" );
}
return properties;
}