Refactor properties bootup, remove GlobalProperties and allow ServerConfig.loadFromProperties()

This commit is contained in:
rbygrave
2014-11-30 17:08:02 +13:00
parent fe65a0ccb9
commit 370267ab6f
105 changed files with 3772 additions and 3963 deletions
@@ -1,5 +1,6 @@
package com.avaje.tests.genkey;
import com.avaje.ebean.config.dbplatform.IdType;
import org.junit.Assert;
import org.junit.Test;
@@ -17,10 +18,10 @@ public class TestSeqBatch extends BaseTestCase {
EbeanServer server = Ebean.getServer(null);
SpiEbeanServer spiServer = (SpiEbeanServer)server;
boolean seqSupport = spiServer.getDatabasePlatform().getDbIdentity().isSupportsSequence();
if (seqSupport){
IdType idType = spiServer.getDatabasePlatform().getDbIdentity().getIdType();
if (IdType.SEQUENCE == idType){
BeanDescriptor<TOne> d = spiServer.getBeanDescriptor(TOne.class);
Object id = d.nextId(null);