Skip to content

Commit 559a448

Browse files
koval666schauder
authored andcommitted
Add Transactional annotation to deleteAllById.
Original pull request #1370
1 parent 5fbc68e commit 559a448

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/support/SimpleJdbcRepository.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* @author Milan Milanov
4242
* @author Chirag Tailor
4343
* @author Diego Krupitza
44+
* @author Dmitriy Kovalenko
4445
*/
4546
@Transactional(readOnly = true)
4647
public class SimpleJdbcRepository<T, ID>
@@ -110,6 +111,7 @@ public void delete(T instance) {
110111
entityOperations.delete(instance);
111112
}
112113

114+
@Transactional
113115
@Override
114116
public void deleteAllById(Iterable<? extends ID> ids) {
115117
entityOperations.deleteAllById(ids, entity.getType());

0 commit comments

Comments
 (0)