Skip to content

Commit

Permalink
feat : 3차 세미나 실습 과제_ PostRepository에 findByBlog메소드 추가 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed May 1, 2024
1 parent 7af1dd6 commit 22bc2f4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
Binary file not shown.
Binary file modified week02/seminar/demo/.gradle/8.7/fileHashes/fileHashes.lock
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import com.example.demo.domain.Blog;
import com.example.demo.domain.Post;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;

public interface PostRepository extends JpaRepository<Post, Long> {

List<Post> findByBlog(Blog blog);

}

0 comments on commit 22bc2f4

Please sign in to comment.