removing redundant interface

This commit is contained in:
Ulisses Lima 2023-03-27 13:56:16 -03:00
parent 9af9ee9b48
commit 44cc5f5220
1 changed files with 1 additions and 1 deletions

View File

@ -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<Post, Long>, PagingAndSortingRepository<Post, Long> {
public interface PostRepository extends JpaRepository<Post, Long> {
@Query("select u from Post u where u.userName=:userName")
Page<Post> findByUser(@Param("userName") String userName, Pageable pageReq);