Align TransactionOperations usage with Spring Framework 5.2.0.RELEASE
See: #1506
This commit is contained in:
@@ -434,7 +434,7 @@ public class JdbcIndexedSessionRepository
|
||||
|
||||
@Override
|
||||
public void deleteById(final String id) {
|
||||
this.transactionOperations.execute(() -> JdbcIndexedSessionRepository.this.jdbcOperations
|
||||
this.transactionOperations.executeWithoutResult((status) -> JdbcIndexedSessionRepository.this.jdbcOperations
|
||||
.update(JdbcIndexedSessionRepository.this.deleteSessionQuery, id));
|
||||
}
|
||||
|
||||
@@ -776,7 +776,7 @@ public class JdbcIndexedSessionRepository
|
||||
|
||||
private void save() {
|
||||
if (this.isNew) {
|
||||
JdbcIndexedSessionRepository.this.transactionOperations.execute(() -> {
|
||||
JdbcIndexedSessionRepository.this.transactionOperations.executeWithoutResult((status) -> {
|
||||
Map<String, String> indexes = JdbcIndexedSessionRepository.this.indexResolver
|
||||
.resolveIndexesFor(JdbcSession.this);
|
||||
JdbcIndexedSessionRepository.this.jdbcOperations
|
||||
@@ -796,7 +796,7 @@ public class JdbcIndexedSessionRepository
|
||||
});
|
||||
}
|
||||
else {
|
||||
JdbcIndexedSessionRepository.this.transactionOperations.execute(() -> {
|
||||
JdbcIndexedSessionRepository.this.transactionOperations.executeWithoutResult((status) -> {
|
||||
if (JdbcSession.this.changed) {
|
||||
Map<String, String> indexes = JdbcIndexedSessionRepository.this.indexResolver
|
||||
.resolveIndexesFor(JdbcSession.this);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
ext['spring-framework.version'] = '5.2.0.BUILD-SNAPSHOT'
|
||||
ext['webjars-locator-core.version'] = '0.38'
|
||||
|
||||
dependencyManagement {
|
||||
|
||||
Reference in New Issue
Block a user