Align TransactionOperations usage with Spring Framework 5.2.0.RELEASE

See: #1506
This commit is contained in:
Vedran Pavic
2019-09-29 22:12:30 +02:00
parent bd36e115a8
commit 47a4873199
2 changed files with 4 additions and 3 deletions

View File

@@ -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);

View File

@@ -1,3 +1,4 @@
ext['spring-framework.version'] = '5.2.0.BUILD-SNAPSHOT'
ext['webjars-locator-core.version'] = '0.38'
dependencyManagement {