JPA를 활용해 CRUD 기능을 만들어보자
5. 글 목록보기(isDel="N"인 데이터들만)
BoardRepository
List<Board> findBoardByIsDel(String isDel);
BoardJpaService
public List<Board> getBoardList() {
// jpa queryMethod를 수정하여 isDel이 "N"인 데이터row들만 나오도록 수정
return boardRepository.findBoardByIsDel("N");
}
'Springboot' 카테고리의 다른 글
2021-10-27 (Springboot - JPA - CRUD(8) ) (0) | 2021.11.02 |
---|---|
2021-10-27 (Springboot - JPA - CRUD(7) ) (0) | 2021.10.27 |
2021-10-26 (Springboot - JPA - CRUD(5) ) (0) | 2021.10.26 |
2021-10-26 (Springboot - JPA - CRUD(4) ) (0) | 2021.10.26 |
2021-10-25 (Springboot - JPA - CRUD(3) ) (0) | 2021.10.26 |