Hello, i have a question about transactions.
Is wrapping code in transaction with query.transaction().in(() -> ...) supposed to automatically set autocommit to false? I noticed that my changes are not rolled back unless i do connection.setAutoCommit(false);. I'm creating connection with DriverManager.getConnection.
I had an expectation that wrapping code in a transaction turns off autocommit, but now i'm confused.
Thanks
Hello, i have a question about transactions.
Is wrapping code in transaction with
query.transaction().in(() -> ...)supposed to automatically set autocommit to false? I noticed that my changes are not rolled back unless i doconnection.setAutoCommit(false);. I'm creating connection withDriverManager.getConnection.I had an expectation that wrapping code in a transaction turns off autocommit, but now i'm confused.
Thanks