HHH-7187 - Enable USE_NEW_ID_GENERATOR_MAPPINGS
This commit is contained in:
parent
c76810ac47
commit
7e6815c80c
|
@ -97,9 +97,8 @@ public abstract class AbstractEntityTest extends AbstractEnversTest {
|
|||
}
|
||||
if ( createSchema() ) {
|
||||
configurationProperties.setProperty( Environment.HBM2DDL_AUTO, "create-drop" );
|
||||
// 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");
|
||||
configurationProperties.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
|
||||
configurationProperties.setProperty("org.hibernate.envers.use_enhanced_revision_entity", "true");
|
||||
}
|
||||
if (auditStrategy != null && !"".equals(auditStrategy)) {
|
||||
configurationProperties.setProperty("org.hibernate.envers.audit_strategy", auditStrategy);
|
||||
|
|
|
@ -42,10 +42,9 @@ public abstract class AbstractOneSessionTest extends AbstractEnversTest {
|
|||
if (auditStrategy != null && !"".equals(auditStrategy)) {
|
||||
config.setProperty("org.hibernate.envers.audit_strategy", auditStrategy);
|
||||
}
|
||||
// Setting this property causes manual flush tests failures
|
||||
// config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
|
||||
config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
|
||||
config.setProperty("org.hibernate.envers.use_enhanced_revision_entity", "true");
|
||||
addProperties(config);
|
||||
addProperties(config);
|
||||
|
||||
this.initMappings();
|
||||
|
||||
|
|
|
@ -41,9 +41,8 @@ public abstract class AbstractSessionTest extends AbstractEnversTest {
|
|||
config = new Configuration();
|
||||
if ( createSchema() ) {
|
||||
config.setProperty( Environment.HBM2DDL_AUTO, "create-drop" );
|
||||
// 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");
|
||||
config.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
|
||||
config.setProperty("org.hibernate.envers.use_enhanced_revision_entity", "true");
|
||||
}
|
||||
String auditStrategy = getAuditStrategy();
|
||||
if (auditStrategy != null && !"".equals(auditStrategy)) {
|
||||
|
|
Loading…
Reference in New Issue