mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor properties bootup, remove GlobalProperties and allow ServerConfig.loadFromProperties()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user