#1552 - Remove deprecated methods on Transaction setBatch(PersistBatch) .. migrate to setBatchMode(boolean)

This commit is contained in:
rob bygrave
2018-11-19 23:36:15 +13:00
parent 6bc72ae6bb
commit 83776a1eae
18 changed files with 51 additions and 179 deletions
@@ -5,15 +5,13 @@ import io.ebean.Ebean;
import io.ebean.EbeanServer;
import io.ebean.Transaction;
import io.ebean.annotation.IgnorePlatform;
import io.ebean.annotation.PersistBatch;
import io.ebean.annotation.Platform;
import org.tests.model.basic.UTDetail;
import org.tests.model.basic.UTMaster;
import org.ebeantest.LoggedSqlCollector;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tests.model.basic.UTDetail;
import org.tests.model.basic.UTMaster;
import java.util.List;
@@ -33,7 +31,7 @@ public class TestBatchPersistCascade extends BaseTestCase {
Transaction txn = ebeanServer.beginTransaction();
try {
txn.setBatch(PersistBatch.ALL);
txn.setBatchMode(true);
logger.info("start ------------");
for (int i = 0; i < 3; i++) {
@@ -66,8 +64,8 @@ public class TestBatchPersistCascade extends BaseTestCase {
Transaction txn = server.beginTransaction();
try {
txn.setBatch(PersistBatch.ALL);
txn.setBatchOnCascade(PersistBatch.ALL);
txn.setBatchMode(true);
txn.setBatchOnCascade(true);
for (int i = 0; i < 3; i++) {
UTMaster master = createMaster(i + 500);