HHH-7187 - H2 manual flush tests fix

This commit is contained in:
Lukasz Antoniak 2012-04-10 21:34:04 +02:00 committed by Strong Liu
parent c4822556c1
commit 68dda2c242
4 changed files with 8 additions and 4 deletions

View File

@ -97,7 +97,8 @@ public abstract class AbstractEntityTest extends AbstractEnversTest {
}
if ( createSchema() ) {
configurationProperties.setProperty( Environment.HBM2DDL_AUTO, "create-drop" );
configurationProperties.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
// Setting this property causes manual flush tests failures
// configurationProperties.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
configurationProperties.setProperty("org.hibernate.envers.use_enhanced_revision_entity", "true");
}
if (auditStrategy != null && !"".equals(auditStrategy)) {

View File

@ -42,7 +42,8 @@ public abstract class AbstractOneSessionTest extends AbstractEnversTest {
if (auditStrategy != null && !"".equals(auditStrategy)) {
config.setProperty("org.hibernate.envers.audit_strategy", auditStrategy);
}
config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
// Setting this property causes manual flush tests failures
// config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
config.setProperty("org.hibernate.envers.use_enhanced_revision_entity", "true");
addProperties(config);

View File

@ -41,7 +41,8 @@ public abstract class AbstractSessionTest extends AbstractEnversTest {
config = new Configuration();
if ( createSchema() ) {
config.setProperty( Environment.HBM2DDL_AUTO, "create-drop" );
config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
// Setting this property causes manual flush tests failures
// config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
config.setProperty("org.hibernate.envers.use_enhanced_revision_entity", "true");
}
String auditStrategy = getAuditStrategy();

View File

@ -25,7 +25,8 @@ public class SchemaExportTest extends AbstractSessionTest {
@Override
protected void initMappings() throws MappingException, URISyntaxException {
config.addAnnotatedClass(StrTestEntity.class);
config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
// Setting this property causes manual flush tests failures
// config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
config.setProperty("org.hibernate.envers.use_enhanced_revision_entity", "true");
}
protected boolean createSchema() {