From 44cc5f5220ce3b4b553569d08b149637a8206324 Mon Sep 17 00:00:00 2001 From: Ulisses Lima Date: Mon, 27 Mar 2023 13:56:16 -0300 Subject: [PATCH] removing redundant interface --- .../baeldung/springpagination/repository/PostRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-rest/src/main/java/com/baeldung/springpagination/repository/PostRepository.java b/spring-boot-rest/src/main/java/com/baeldung/springpagination/repository/PostRepository.java index acdc01df94..62f05f8262 100644 --- a/spring-boot-rest/src/main/java/com/baeldung/springpagination/repository/PostRepository.java +++ b/spring-boot-rest/src/main/java/com/baeldung/springpagination/repository/PostRepository.java @@ -10,7 +10,7 @@ import org.springframework.data.repository.query.Param; import com.baeldung.springpagination.model.Post; import com.baeldung.springpagination.model.User; -public interface PostRepository extends JpaRepository, PagingAndSortingRepository { +public interface PostRepository extends JpaRepository { @Query("select u from Post u where u.userName=:userName") Page findByUser(@Param("userName") String userName, Pageable pageReq);