Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private <R> R getWithTransaction(final TransactionalFunction<R> function) {
try (Connection tx = dataSource.getConnection()) {
boolean previousAutoCommitMode = tx.getAutoCommit();
tx.setAutoCommit(false);
tx.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);

try {
// Enable foreign keys for SQLite
Expand Down Expand Up @@ -130,6 +131,7 @@ protected <R> R getWithTransactionWithOutErrorPropagation(TransactionalFunction<
try (Connection tx = dataSource.getConnection()) {
boolean previousAutoCommitMode = tx.getAutoCommit();
tx.setAutoCommit(false);
tx.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);

try {
// Enable foreign keys for SQLite
Expand Down
Loading
Loading