From 01898131a6f4ca3f6394c4f13e7e456f46273848 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 2 Feb 2012 16:05:56 +0100 Subject: [PATCH] DATACMNS-129 - Introduced CrudRepository.findAll(Iterable ids). --- .../springframework/data/repository/CrudRepository.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/repository/CrudRepository.java b/spring-data-commons-core/src/main/java/org/springframework/data/repository/CrudRepository.java index 1e3a683df..6ab074d34 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/repository/CrudRepository.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/repository/CrudRepository.java @@ -69,6 +69,14 @@ public interface CrudRepository extends Repository findAll(); + /** + * Returns all instances of the type with the given IDs. + * + * @param ids + * @return + */ + Iterable findAll(Iterable ids); + /** * Returns the number of entities available. *