FIX: we can set persistBatchOnCascade to ALL for newer DB2 versions

This commit is contained in:
Jonas Pöhler
2022-01-31 11:32:22 +01:00
parent 94ae513d85
commit 4b8565e7c7
2 changed files with 2 additions and 1 deletions
@@ -43,7 +43,6 @@ public abstract class BaseDB2Platform extends DatabasePlatform {
dbTypeMap.put(DbType.BIGINT, new DbPlatformType("bigint", false));
dbTypeMap.put(DbType.REAL, new DbPlatformType("real"));
dbTypeMap.put(DbType.DECIMAL, new DbPlatformType("decimal", 16, 3));
persistBatchOnCascade = PersistBatch.NONE;
}
/**
@@ -1,5 +1,6 @@
package io.ebean.config.dbplatform.db2;
import io.ebean.annotation.PersistBatch;
import io.ebean.annotation.Platform;
/**
@@ -16,5 +17,6 @@ public class DB2LegacyPlatform extends BaseDB2Platform {
// TOOD: Check if we need to introduce a new platform (DB2_LUW_11 ?)
this.maxTableNameLength = 18;
this.maxConstraintNameLength = 18;
this.persistBatchOnCascade = PersistBatch.NONE;
}
}