mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
FIX: we can set persistBatchOnCascade to ALL for newer DB2 versions
This commit is contained in:
1 parent
94ae513d85
commit
4b8565e7c7
2 files changed
+2
-1
No files matched your search
@@ -43,7 +43,6 @@ public abstract class BaseDB2Platform extends DatabasePlatform {
|
|||||||
dbTypeMap.put(DbType.BIGINT, new DbPlatformType("bigint", false));
|
dbTypeMap.put(DbType.BIGINT, new DbPlatformType("bigint", false));
|
||||||
dbTypeMap.put(DbType.REAL, new DbPlatformType("real"));
|
dbTypeMap.put(DbType.REAL, new DbPlatformType("real"));
|
||||||
dbTypeMap.put(DbType.DECIMAL, new DbPlatformType("decimal", 16, 3));
|
dbTypeMap.put(DbType.DECIMAL, new DbPlatformType("decimal", 16, 3));
|
||||||
persistBatchOnCascade = PersistBatch.NONE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package io.ebean.config.dbplatform.db2;
|
package io.ebean.config.dbplatform.db2;
|
||||||
|
|
||||||
|
import io.ebean.annotation.PersistBatch;
|
||||||
import io.ebean.annotation.Platform;
|
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 ?)
|
// TOOD: Check if we need to introduce a new platform (DB2_LUW_11 ?)
|
||||||
this.maxTableNameLength = 18;
|
this.maxTableNameLength = 18;
|
||||||
this.maxConstraintNameLength = 18;
|
this.maxConstraintNameLength = 18;
|
||||||
|
this.persistBatchOnCascade = PersistBatch.NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user