DATAKV-330 - Implement CrudRepository.deleteAllById(Iterable<ID> ids).

Original pull request: #52.
This commit is contained in:
Jens Schauder
2020-11-11 11:46:49 +01:00
committed by Mark Paluch
parent 9fc180f8d6
commit 54c7603496
3 changed files with 22 additions and 2 deletions

View File

@@ -216,6 +216,14 @@ public class SimpleKeyValueRepository<T, ID> implements KeyValueRepository<T, ID
entities.forEach(this::delete);
}
@Override
public void deleteAllById(Iterable<? extends ID> ids) {
Assert.notNull(ids, "The given Iterable of Ids must not be null!");
ids.forEach(this::deleteById);
}
/*
* (non-Javadoc)
* @see org.springframework.data.repository.CrudRepository#deleteAll()