mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-02 15:59:18 +00:00
HHH-7187 - Enable USE_NEW_ID_GENERATOR_MAPPINGS
This commit is contained in:
parent
c76810ac47
commit
7e6815c80c
@ -97,9 +97,8 @@ protected void init(boolean audited, String auditStrategy) throws IOException {
|
||||
}
|
||||
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 void init() throws URISyntaxException {
|
||||
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 void init() throws URISyntaxException {
|
||||
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…
x
Reference in New Issue
Block a user