Permalink
Browse files

HHH-7187 - Enable USE_NEW_ID_GENERATOR_MAPPINGS

  • Loading branch information...
1 parent e422b9d commit 249d4f4c9ce3786394eea59907244125fefc98d6 @lukasz-antoniak committed Apr 16, 2012
@@ -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)) {

0 comments on commit 249d4f4

Please sign in to comment.