Adopt tests to PagingAndSortingRepository split.

Closes #2105
This commit is contained in:
Mark Paluch
2022-02-11 11:49:41 +01:00
parent b7d6b2b78c
commit 218bedff06
4 changed files with 8 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ package org.springframework.data.rest.tests.mongodb;
import java.util.List;
import java.util.Optional;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
@@ -25,7 +26,7 @@ import org.springframework.data.repository.query.Param;
* @author Jon Brisbin
* @author Oliver Gierke
*/
public interface ProfileRepository extends PagingAndSortingRepository<Profile, String> {
public interface ProfileRepository extends PagingAndSortingRepository<Profile, String>, CrudRepository<Profile, String> {
List<Profile> findByType(String type);

View File

@@ -21,13 +21,14 @@ import java.util.List;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.querydsl.binding.QuerydslBinderCustomizer;
import org.springframework.data.querydsl.binding.QuerydslBindings;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
/**
* @author Oliver Gierke
*/
public interface UserRepository extends PagingAndSortingRepository<User, BigInteger>, QuerydslPredicateExecutor<User>,
public interface UserRepository extends PagingAndSortingRepository<User, BigInteger>, CrudRepository<User, BigInteger>, QuerydslPredicateExecutor<User>,
QuerydslBinderCustomizer<QUser> {
List<User> findByFirstname(String firstname);