remove usage of deprecated id generator that blocks migration to hibernate 6

This commit is contained in:
Athou
2023-05-29 08:31:47 +02:00
parent 2ec6d0a66a
commit 09d21d88a4
3 changed files with 63 additions and 16 deletions

View File

@@ -118,8 +118,7 @@ public class CommaFeedApplication extends Application<CommaFeedConfiguration> {
public DataSourceFactory getDataSourceFactory(CommaFeedConfiguration configuration) {
DataSourceFactory factory = configuration.getDataSourceFactory();
// keep using old id generator for backward compatibility
factory.getProperties().put(AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS, "false");
factory.getProperties().put(AvailableSettings.PREFERRED_POOLED_OPTIMIZER, "pooled-lo");
factory.getProperties().put(AvailableSettings.STATEMENT_BATCH_SIZE, "50");
factory.getProperties().put(AvailableSettings.BATCH_VERSIONED_DATA, "true");