DATACMNS-19 - Refactored return type for Repository.findAll(…) and according methods to return Iterable instead of List.

This commit is contained in:
Oliver Gierke
2011-03-11 18:58:48 +01:00
parent d60f53e8f3
commit 83f8306656
3 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,6 @@
package org.springframework.data.repository; package org.springframework.data.repository;
import java.io.Serializable; import java.io.Serializable;
import java.util.List;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
@@ -41,7 +40,7 @@ public interface PagingAndSortingRepository<T, ID extends Serializable> extends
* @param sort * @param sort
* @return all entities sorted by the given options * @return all entities sorted by the given options
*/ */
List<T> findAll(Sort sort); Iterable<T> findAll(Sort sort);
/** /**

View File

@@ -43,7 +43,7 @@ public interface Repository<T, ID extends Serializable> {
* @param entities * @param entities
* @return * @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 * @return all entities
*/ */
List<T> findAll(); Iterable<T> findAll();
/** /**

View File

@@ -14,8 +14,9 @@ Repository
* Introduced metamodel for entities and repositories (DATACMNS-17) * Introduced metamodel for entities and repositories (DATACMNS-17)
* Fixed returning wrong class PersistableEntityMetadata (DATACMNS-19) * Fixed returning wrong class PersistableEntityMetadata (DATACMNS-19)
* Introduced infrastructure to post-process RepositoryQuery instances (DATACMNS-18) * Introduced infrastructure to post-process RepositoryQuery instances (DATACMNS-18)
* Renamed Repository.findById() to findOne() (DATACMNS-20) * Renamed Repository.findById(...) to findOne(<EFBFBD>) (DATACMNS-20)
* Extension module for Spring MVC integration (DATAJPA-19) * Extension module for Spring MVC integration (DATAJPA-19)
* Changed method signature of Repository.findAll(...) and according methods to Iterable<T> (DATACMNS-21)
Changes in version 1.0.0.M3 (2011-02-09) Changes in version 1.0.0.M3 (2011-02-09)
---------------------------------------- ----------------------------------------