Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[고도화] 댓글 기능 고도화 - 1차 대댓글: 도메인 업데이트 #71

Merged

Conversation

lmw7414
Copy link
Owner

@lmw7414 lmw7414 commented Jan 8, 2023

이 pr은 1차 대댓글 개발을 위해 도메인을 업데이트한다.

This closes #67

대댓글 도메인 안에서 부모, 자식 관계를 설정하는 코드를 추가. 자식 댓글의 컬렉션 변화가 쿼리에 반영되게끔 cascading 규칙을 모두 적용
이번엔 단방향 연관관계 설정을 사용해보기로 함.
따라서 부모 댓들은 엔티티가 아닌 `Long` id를 직접 표현

또한 자식 댓글을 추가할 수 있는 메소드 추가 제공
@lmw7414 lmw7414 added the enhancement New feature or request label Jan 8, 2023
@lmw7414 lmw7414 added this to the 게시판 서비스 만들기 milestone Jan 8, 2023
@lmw7414 lmw7414 self-assigned this Jan 8, 2023
Copy link
Owner Author

@lmw7414 lmw7414 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lmw7414 lmw7414 merged commit 96379e2 into feature/#66-child-comments Jan 8, 2023
@lmw7414 lmw7414 deleted the feature/#67-child-comments-domain branch January 8, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant