Browse Source

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

pull/2/head
Oliver Gierke 15 years ago
parent
commit
83f8306656
  1. 3
      spring-data-commons-core/src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java
  2. 4
      spring-data-commons-core/src/main/java/org/springframework/data/repository/Repository.java
  3. 3
      src/main/resources/changelog.txt

3
spring-data-commons-core/src/main/java/org/springframework/data/repository/PagingAndSortingRepository.java

@ -16,7 +16,6 @@ @@ -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 @@ -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);
/**

4
spring-data-commons-core/src/main/java/org/springframework/data/repository/Repository.java

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

3
src/main/resources/changelog.txt

@ -14,8 +14,9 @@ Repository @@ -14,8 +14,9 @@ Repository
* Introduced metamodel for entities and repositories (DATACMNS-17)
* Fixed returning wrong class PersistableEntityMetadata (DATACMNS-19)
* Introduced infrastructure to post-process RepositoryQuery instances (DATACMNS-18)
* Renamed Repository.findById(…) to findOne(…) (DATACMNS-20)
* Renamed Repository.findById(...) to findOne(É) (DATACMNS-20)
* 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)
----------------------------------------

Loading…
Cancel
Save