Merge pull request #13727 from ulisseslima/bael--quickfix_PostRepository

PostRepository - removing redundant interface
This commit is contained in:
Loredana Crusoveanu 2023-03-28 12:15:45 +03:00 committed by GitHub
commit aa856a6abb
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);