#1263 - ENH: Make Transaction API Fluid such that we can set multiple thing like batchSize and label in a fluid fashion

This commit is contained in:
Rob Bygrave committed 2018-02-16 14:40:35 +13:00
1 parent ac36172cc6
commit 3d62e84d59
10 files changed
+180 -126

No files matched your search

@@ -22,10 +22,8 @@ public class TestSqlServerBatch extends BaseTestCase {
@Test
public void testBasicIdentityBatch() {
Transaction txn = Ebean.beginTransaction();
Transaction txn = Ebean.beginTransaction().setBatchMode(true).setBatchSize(3);
try {
txn.setBatchMode(true);
txn.setBatchSize(3);
for (int i = 0; i < 10; i++) {
ESimple model = new ESimple();