public DdlGenerator(SpiEbeanServer server, DatabasePlatform dbPlatform, ServerConfig serverConfig) { this.server = server; this.dbPlatform = dbPlatform; this.generateDdl = serverConfig.isDdlGenerate(); this.runDdl = serverConfig.isDdlRun(); this.namingConvention = serverConfig.getNamingConvention(); }
/** * Set the naming convention to underscore if it has not already been set. */ private void setNamingConvention(ServerConfig config) { if (config.getNamingConvention() == null) { config.setNamingConvention(new UnderscoreNamingConvention()); } }
public DdlGenerator(SpiEbeanServer server, DatabasePlatform dbPlatform, ServerConfig serverConfig) { this.server = server; this.dbPlatform = dbPlatform; this.generateDdl = serverConfig.isDdlGenerate(); this.runDdl = serverConfig.isDdlRun(); this.namingConvention = serverConfig.getNamingConvention(); }
/** * Construct with a naming convention and platform specific DDL. */ public BaseTableDdl(ServerConfig serverConfig, PlatformDdl platformDdl) { this.namingConvention = serverConfig.getNamingConvention(); this.naming = serverConfig.getConstraintNaming(); this.historyTableSuffix = serverConfig.getHistoryTableSuffix(); this.platformDdl = platformDdl; this.platformDdl.configure(serverConfig); }
public DeployUtil(TypeManager typeMgr, ServerConfig serverConfig) { this.typeManager = typeMgr; this.namingConvention = serverConfig.getNamingConvention(); this.dbPlatform = serverConfig.getDatabasePlatform(); this.encryptDeployManager = serverConfig.getEncryptDeployManager(); this.encryptKeyManager = serverConfig.getEncryptKeyManager(); Encryptor be = serverConfig.getEncryptor(); this.bytesEncryptor = be != null ? be : new SimpleAesEncryptor(); }
/** * Set the naming convention to underscore if it has not already been set. */ private void setNamingConvention(ServerConfig config) { if (config.getNamingConvention() == null) { UnderscoreNamingConvention nc = new UnderscoreNamingConvention(); config.setNamingConvention(nc); String v = config.getProperty("namingConvention.useForeignKeyPrefix"); if (v != null) { boolean useForeignKeyPrefix = Boolean.valueOf(v); nc.setUseForeignKeyPrefix(useForeignKeyPrefix); } String sequenceFormat = config.getProperty("namingConvention.sequenceFormat"); if (sequenceFormat != null) { nc.setSequenceFormat(sequenceFormat); } } }
/** * Set the naming convention to underscore if it has not already been set. */ private void setNamingConvention(ServerConfig config) { if (config.getNamingConvention() == null) { UnderscoreNamingConvention nc = new UnderscoreNamingConvention(); config.setNamingConvention(nc); String v = config.getProperty("namingConvention.useForeignKeyPrefix"); if (v != null) { boolean useForeignKeyPrefix = Boolean.valueOf(v); nc.setUseForeignKeyPrefix(useForeignKeyPrefix); } String sequenceFormat = config.getProperty("namingConvention.sequenceFormat"); if (sequenceFormat != null) { nc.setSequenceFormat(sequenceFormat); } } }
public DeployUtil(TypeManager typeMgr, ServerConfig serverConfig) { this.typeManager = typeMgr; this.namingConvention = serverConfig.getNamingConvention(); this.dbPlatform = serverConfig.getDatabasePlatform(); this.encryptDeployManager = serverConfig.getEncryptDeployManager(); this.encryptKeyManager = serverConfig.getEncryptKeyManager(); Encryptor be = serverConfig.getEncryptor(); this.bytesEncryptor = be != null ? be : new SimpleAesEncryptor(); // this alias is used for ManyToMany lazy loading queries this.manyToManyAlias = "zzzzzz"; this.validatorFactoryManager = new ValidatorFactoryManager(); }
public DeployUtil(TypeManager typeMgr, ServerConfig serverConfig) { this.typeManager = typeMgr; this.namingConvention = serverConfig.getNamingConvention(); this.dbPlatform = serverConfig.getDatabasePlatform(); this.encryptDeployManager = serverConfig.getEncryptDeployManager(); this.encryptKeyManager = serverConfig.getEncryptKeyManager(); Encryptor be = serverConfig.getEncryptor(); this.bytesEncryptor = be != null ? be : new SimpleAesEncryptor(); // this alias is used for ManyToMany lazy loading queries this.manyToManyAlias = "zzzzzz"; this.validatorFactoryManager = new ValidatorFactoryManager(); }
serverConfig.getNamingConvention().setDatabasePlatform(serverConfig.getDatabasePlatform());
serverConfig.getNamingConvention().setDatabasePlatform(serverConfig.getDatabasePlatform());
serverConfig.getNamingConvention().setDatabasePlatform(serverConfig.getDatabasePlatform());
this.subClassManager = config.getSubClassManager(); this.typeManager = config.getTypeManager(); this.namingConvention = config.getServerConfig().getNamingConvention(); this.dbIdentity = config.getDatabasePlatform().getDbIdentity(); this.deplyInherit = config.getDeployInherit();
this.subClassManager = config.getSubClassManager(); this.typeManager = config.getTypeManager(); this.namingConvention = config.getServerConfig().getNamingConvention(); this.dbIdentity = config.getDatabasePlatform().getDbIdentity(); this.deplyInherit = config.getDeployInherit();
this.bootupClasses = config.getBootupClasses(); this.createProperties = config.getDeployCreateProperties(); this.namingConvention = serverConfig.getNamingConvention(); this.dbIdentity = config.getDatabasePlatform().getDbIdentity(); this.deplyInherit = config.getDeployInherit();