Open
Conversation
- record 사용 - 게시글 생성, 수정 시 요청 Dto - 댓글 생성, 수정 시 요청 Dto
- record 사용 - 게시글 단건 조회시 응답 Dto - 댓글 조회시 응답 Dto
- 모든 데이터의 생성/수정/삭제 시 변경 시점에 대한 데이터가 자동으로 관리 되도록 JPA Audit 기능 설정
- BaseTimeEntity 상속 - Comment: Post 엔티티와 N:1 관계 설정
- PostService 구현 (CRUD) - Post/Comment Repository 인터페이스 구현 - PostMapper, CommentMapper 구현 - PostGetResponseDto와 CommentGetResponseDto에 Builder 패턴 적용 - Post 엔티티에 updateOf 메서드 추가
- CommentService 구현 (CRUD) - CommentRepository에 Id로 Comment 조회하는 메서드 추가 - CommentMapper에 dto->entity 변환하는 메서드 추가 - Comment 엔티티에 updateOf 메서드 추가
- PostController: 페이지, 페이지사이즈 디폴트값 설정 - getPostList 메서드 구현, createdAt을 기준으로 내림차순 정렬 - Post엔티티를 PostResponseDto로 변환하는 매퍼 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
게시판 프로젝트 과제 제출합니다.