Skip to content

Commit

Permalink
fix:filter using boardType
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy0006 committed Jan 21, 2024
1 parent 6e0006c commit 507563f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public interface PostRepository extends JpaRepository<Post, Long>, PagingAndSortingRepository<Post, Long>, JpaSpecificationExecutor<Post> {
Page<Post> findByMember(Member member, Pageable pageable);

@Query("select p from Post p where p.isDeleted=false")
@Query("select p from Post p where p.boardType=:boardType and p.isDeleted=false")
Page<Post> findByBoardType(BoardType boardType, Pageable pageable);
Page<Post> findByTitleContainingOrBodyContaining(String title, String body, Pageable pageable);

Expand Down

0 comments on commit 507563f

Please sign in to comment.