Skip to content

Commit

Permalink
update BasicRepository to reflect change to List
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Mar 18, 2024
1 parent 8b26ecb commit cb9ee87
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import jakarta.data.page.Page;
import jakarta.data.page.PageRequest;

import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;

Expand Down Expand Up @@ -190,7 +191,7 @@ public interface BasicRepository<T, K> extends DataRepository<T, K> {
* @throws NullPointerException in case the given {@link Iterable ids} or one of its items is {@code null}.
*/
@Find
Stream<T> findByIdIn(@By(ID) Iterable<K> ids);
Stream<T> findByIdIn(@By(ID) List<K> ids);

/**
* Deletes the entity with the given Id.
Expand Down Expand Up @@ -225,7 +226,7 @@ public interface BasicRepository<T, K> extends DataRepository<T, K> {
* @throws NullPointerException when the iterable is {@code null} or contains {@code null} elements.
*/
@Delete
void deleteByIdIn(@By(ID) Iterable<K> ids);
void deleteByIdIn(@By(ID) List<K> ids);

/**
* Deletes the given entities. Deletion of each entity is performed by matching the unique identifier,
Expand Down

0 comments on commit cb9ee87

Please sign in to comment.