001package io.ebean.config.dbplatform.db2; 002 003import io.ebean.annotation.PersistBatch; 004import io.ebean.annotation.Platform; 005 006/** 007 * DB2 specific platform for older DB2 versions. This platform is here for 008 * compatibility reasons. It uses a length limit of 18 chars for table and 009 * constraint names. Newer DB2 versions will support up to 128. It is strongly 010 * recommended to migrate to db2luw/DB2ForI or db2zos platform. 011 */ 012public class DB2LegacyPlatform extends BaseDB2Platform { 013 public DB2LegacyPlatform() { 014 super(); 015 this.platform = Platform.DB2; 016 // Note: DB2 (at least LUW supports length up to 128) 017 // TOOD: Check if we need to introduce a new platform (DB2_LUW_11 ?) 018 this.maxTableNameLength = 18; 019 this.maxConstraintNameLength = 18; 020 this.persistBatchOnCascade = PersistBatch.NONE; 021 } 022}