Skip to content

Commit

Permalink
[#6] feat: 조회 함수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnxyoung committed Feb 8, 2024
1 parent 9aa871b commit c094c5e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

public interface PostRepository extends JpaRepository<Post, Long> {
//Page<Post> findAll(Pageable pageable); //전체 조회(페이징)

//Page<Post> findByCategory(StackName stackname, Pageable pageable);

Post findByPostId(Long post_id);
Optional<Post> findByPostIdAndDeletedAtIsNull(Long postId);
}

0 comments on commit c094c5e

Please sign in to comment.