Add Transaction Properties #15

Merged
andrewlalis merged 18 commits from transaction-properties into main 2024-02-04 04:31:04 +00:00
1 changed files with 8 additions and 1 deletions
Showing only changes of commit 3493003588 - Show all commits

View File

@ -75,7 +75,14 @@ public class JdbcEntitySearcher<T> implements EntitySearcher<T> {
sqlBuilder.append('\n').append(pagingSql);
}
String sql = sqlBuilder.toString();
logger.info("Searching with query:\n{}\nWith arguments: {}", sql, baseQueryAndArgs.second().stream().map(Pair::second).map(Object::toString).collect(Collectors.joining(", ")));
logger.debug(
"Searching with query:\n{}\nWith arguments: {}",
sql,
baseQueryAndArgs.second().stream()
.map(Pair::second)
.map(Object::toString)
.collect(Collectors.joining(", "))
);
try (var stmt = conn.prepareStatement(sql)) {
applyArgs(stmt, baseQueryAndArgs.second());
ResultSet rs = stmt.executeQuery();