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

add: table 및 column 이름 관련 코드 변경 #32

Merged
merged 3 commits into from
Jul 10, 2023
Merged

Conversation

dong2ast
Copy link
Collaborator

📌 관련 이슈

✨ 과제 내용

테이블 및 컬럼 명 수정

📸 스크린샷(선택)

📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들

@dong2ast dong2ast self-assigned this Jul 10, 2023
@@ -28,7 +28,7 @@ public class MemberBooktalk extends AuditingTimeEntity {
// 연관 관계 편의 메서드
public void setMember(Member member) {
if(this.member != null) {
this.member.getUserBookTalkList().remove(this);
this.member.getUserBookTalkList().remove(this); //이거 PATCH될 가능성이 있나?
Copy link
Member

Choose a reason for hiding this comment

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

-> 연관 관계 편의 메서드는 양방향일 때 사용하는 것
setMember를 할 때 member에 기존 member가 있을 수가 없음!
setBooktalk 역시 마찬가지

@@ -35,7 +34,7 @@ public class Place extends AuditingTimeEntity {

private String placeImage;

@OneToMany(mappedBy = "place")
@OneToMany(mappedBy = "place") // Booktalk리스트에 이 속성 요소를 넣고 하나로 통합하던, BooktalkPlace를 만드는게 나을 것 같은데?
Copy link
Member

Choose a reason for hiding this comment

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

approve와 pending 두 개의 리스트가 Booktalk와 중복으로 관계를 맺고 있기 때문에 리스트는 하나만 두고 Booktalk 내부의 속성으로 구분해주는 것으로 수정!

@dong2ast dong2ast requested a review from onpyeong July 10, 2023 09:13
@onpyeong onpyeong merged commit b8577f8 into main Jul 10, 2023
1 check passed
@onpyeong onpyeong deleted the fix/fix-naming branch July 10, 2023 09:17
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