HHH-7187 - H2 manual flush tests fix
This commit is contained in:
parent
c4822556c1
commit
68dda2c242
|
@ -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)) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue