Gustav Elmgren
06/17/2022, 11:46 AMtransaction
to a variable and then something like transaction.begin()
and transaction.commit()
?Endre Deak
06/17/2022, 5:06 PMtransaction {
...
}
?Gustav Elmgren
06/20/2022, 6:22 AMCloseable
. Which should start a transaction in the constructor and then commit it in the close
method. I managed to do it with TransactionManager#newTransaction