[Minor] Auto commit in SimpleExecution.runWithFreshAction()
This commit is contained in:
parent
635115164e
commit
482330bdc8
|
@ -127,6 +127,9 @@ public class SimpleExecution extends ExecutionPolicy {
|
|||
tx.lock(this.actionLoc.trim(3));
|
||||
Action action = tx.findElement(this.actionLoc);
|
||||
consumer.accept(tx, action);
|
||||
|
||||
if (!readOnly && tx.needsCommit())
|
||||
tx.commitOnClose();
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue