Merge pull request #13727 from ulisseslima/bael--quickfix_PostRepository
PostRepository - removing redundant interface
This commit is contained in:
commit
aa856a6abb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue