#2213 - Support autoPersistUpdates via TxScope

This commit is contained in:
Robin Bygrave committed 2021-04-08 23:15:49 +12:00
1 parent 4a1374d22d
commit 7f13ac9e5e
6 files changed
+65 -8

No files matched your search

@@ -73,6 +73,10 @@ public class ScopeTrans {
restoreBatchGeneratedKeys = transaction.getBatchGetGeneratedKeys();
restoreBatchFlushOnQuery = transaction.isFlushOnQuery();
}
Boolean autoPersistUpdates = txScope.getAutoPersistUpdates();
if (autoPersistUpdates != null) {
transaction.setAutoPersistUpdates(autoPersistUpdates);
}
if (txScope.isBatchSet()) {
transaction.setBatchMode(txScope.isBatchMode());
}