diff --git a/src/main/java/com/avaje/ebean/config/dbplatform/DB2Platform.java b/src/main/java/com/avaje/ebean/config/dbplatform/DB2Platform.java index 0ba134708..7fd61ad40 100644 --- a/src/main/java/com/avaje/ebean/config/dbplatform/DB2Platform.java +++ b/src/main/java/com/avaje/ebean/config/dbplatform/DB2Platform.java @@ -19,28 +19,14 @@ public class DB2Platform extends DatabasePlatform { // so generally use SEQUENCE instead for H2 this.sqlLimiter = new Db2SqlLimiter(); this.dbIdentity.setSupportsGetGeneratedKeys(true); - this.dbIdentity.setIdType(IdType.IDENTITY); this.dbIdentity.setSupportsSequence(true); - this.openQuote = "\""; - this.closeQuote = "\""; - - booleanDbType = Types.INTEGER; - dbTypeMap.put(Types.BOOLEAN, new DbType("smallint default 0")); - dbTypeMap.put(Types.INTEGER, new DbType("integer")); - dbTypeMap.put(Types.BIGINT, new DbType("bigint")); - dbTypeMap.put(Types.REAL, new DbType("float")); - dbTypeMap.put(Types.DOUBLE, new DbType("float")); - dbTypeMap.put(Types.SMALLINT, new DbType("smallint")); + booleanDbType = Types.BOOLEAN; + dbTypeMap.put(Types.REAL, new DbType("real")); dbTypeMap.put(Types.TINYINT, new DbType("smallint")); dbTypeMap.put(Types.DECIMAL, new DbType("decimal", 15)); this.dbDdlSyntax.setIdentity("generated by default as identity"); - - // this.dbDdlSyntax.setDropIfExists("if exists"); - // this.dbDdlSyntax.setDisableReferentialIntegrity("SET REFERENTIAL_INTEGRITY FALSE"); - // this.dbDdlSyntax.setEnableReferentialIntegrity("SET REFERENTIAL_INTEGRITY TRUE"); - // this.dbDdlSyntax.setForeignKeySuffix("on delete restrict on update restrict"); } /**