#1417 - Breaking API - Remove PersistBatch.INSERT ... migrate to PersistBatch.ALL

This commit is contained in:
rob bygrave
2018-06-18 21:15:10 +12:00
parent 117737c790
commit 8d976f83a9
14 changed files with 140 additions and 73 deletions
@@ -28,7 +28,7 @@ public class TestBatchInsertSimple extends BaseTestCase {
Transaction transaction = Ebean.beginTransaction();
try {
transaction.setBatch(PersistBatch.NONE);
transaction.setBatchOnCascade(PersistBatch.INSERT);
transaction.setBatchOnCascade(PersistBatch.ALL);
transaction.setBatchSize(30);
// setBatchGetGeneratedKeys MUST be turned off for MS SQL Server because :(
transaction.setBatchGetGeneratedKeys(false);
@@ -101,7 +101,7 @@ public class TestBatchInsertSimple extends BaseTestCase {
Transaction transaction = Ebean.beginTransaction();
try {
transaction.setBatch(PersistBatch.NONE);
transaction.setBatchOnCascade(PersistBatch.INSERT);
transaction.setBatchOnCascade(PersistBatch.ALL);
transaction.setBatchSize(30);
// setBatchGetGeneratedKeys MUST be turned off for MS SQL Server because :(
transaction.setBatchGetGeneratedKeys(false);