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

[7회차] 1:N 관계 #14

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

[7회차] 1:N 관계 #14

wants to merge 6 commits into from

Conversation

tkdgur0906
Copy link
Collaborator

No description provided.

@tkdgur0906 tkdgur0906 changed the title [7회차] 게시글과 댓글 연동 [7회차] 1:N 관계 May 31, 2023
@@ -71,7 +87,11 @@ public BoardResponse updateBoard(Long id, BoardRequest request) {
* 게시글 삭제
*/
public Long deleteBoard(Long id){
Long currentMemberId = SecurityUtil.getCurrentMemberId();
Copy link

Choose a reason for hiding this comment

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

jwt 인증 깔끔하게 잘 하신 것 같습니다!

private String content;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "board_id")
private Board board;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "member_id")
private Member member;

Copy link

Choose a reason for hiding this comment

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

작성하신 Comment 기능 관련 코드들 잘 작성하셨습니다!! 특히 사용자 인증의 경우 제 방법보다 더 깔끔하게 작성하셔서 배워갑니다!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants