Skip to content

Commit 219ed80

Browse files
committed
JpaRepository extends ListXRepository now.
Closes #2688
1 parent d8474e4 commit 219ed80

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/JpaRepository.java

+4-15
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
import org.springframework.data.domain.Example;
2323
import org.springframework.data.domain.Sort;
24-
import org.springframework.data.repository.CrudRepository;
24+
import org.springframework.data.repository.ListCrudRepository;
25+
import org.springframework.data.repository.ListPagingAndSortingRepository;
2526
import org.springframework.data.repository.NoRepositoryBean;
26-
import org.springframework.data.repository.PagingAndSortingRepository;
2727
import org.springframework.data.repository.query.QueryByExampleExecutor;
2828

2929
/**
@@ -35,21 +35,10 @@
3535
* @author Sander Krabbenborg
3636
* @author Jesse Wouters
3737
* @author Greg Turnquist
38+
* @author Jens Schauder
3839
*/
3940
@NoRepositoryBean
40-
public interface JpaRepository<T, ID> extends CrudRepository<T, ID>,PagingAndSortingRepository<T, ID>, QueryByExampleExecutor<T> {
41-
42-
@Override
43-
List<T> findAll();
44-
45-
@Override
46-
List<T> findAll(Sort sort);
47-
48-
@Override
49-
List<T> findAllById(Iterable<ID> ids);
50-
51-
@Override
52-
<S extends T> List<S> saveAll(Iterable<S> entities);
41+
public interface JpaRepository<T, ID> extends ListCrudRepository<T, ID>, ListPagingAndSortingRepository<T, ID>, QueryByExampleExecutor<T> {
5342

5443
/**
5544
* Flushes all pending changes to the database.

0 commit comments

Comments
 (0)