DATACMNS-19 - Refactored return type for Repository.findAll(…) and according methods to return Iterable instead of List.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
package org.springframework.data.repository;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
@@ -41,7 +40,7 @@ public interface PagingAndSortingRepository<T, ID extends Serializable> extends
|
||||
* @param sort
|
||||
* @return all entities sorted by the given options
|
||||
*/
|
||||
List<T> findAll(Sort sort);
|
||||
Iterable<T> findAll(Sort sort);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -43,7 +43,7 @@ public interface Repository<T, ID extends Serializable> {
|
||||
* @param entities
|
||||
* @return
|
||||
*/
|
||||
List<T> save(Iterable<? extends T> entities);
|
||||
Iterable<T> save(Iterable<? extends T> entities);
|
||||
|
||||
|
||||
/**
|
||||
@@ -72,7 +72,7 @@ public interface Repository<T, ID extends Serializable> {
|
||||
*
|
||||
* @return all entities
|
||||
*/
|
||||
List<T> findAll();
|
||||
Iterable<T> findAll();
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user