JPA 엔티티 연관관계 설정 완료#8
Merged
cxxxtxxyxx merged 52 commits intolivable-final:developfrom Sep 12, 2023
cxxxtxxyxx:feature/#5-entity-setting
Merged
JPA 엔티티 연관관계 설정 완료#8cxxxtxxyxx merged 52 commits intolivable-final:developfrom cxxxtxxyxx:feature/#5-entity-setting
cxxxtxxyxx merged 52 commits intolivable-final:developfrom
cxxxtxxyxx:feature/#5-entity-setting
Conversation
Contributor
cxxxtxxyxx
commented
Sep 12, 2023
- 조인테이블 전략 사용으로 인한 불필요한 Review Image 클래스 삭제
- JPA 엔티티 연관관계 설정 #5
createdAt, updatedAt 자동 생성 기능을 위해 상속받기 위한 entity 생성 BaseEntity는 너무 광범위해서 BaseTimeEntity라고 지었음. 수정 가능.
Enumerate를 사용하여 리뷰 평가를 남기기 위한 값 타입의 객체
Enumerate를 사용하여 초대장 목적을 구분하기 위한 값 타입 객체
Enumerate를 사용하여 포인트 획득 상세 설명을 저장하기 위한 값 타입 객체
Enumerate를 사용하여 리뷰 상세 타입 구분하기 위한 값 타입 객체
Enumerate를 사용하여 유저의 역할을 구분하기 위한 값 타입 객체
description 필드 추가
BaseTimeEntity 필드 사이에 줄바꿈 추가
Invitation과 Reservation 복합 유니크 인덱스 설정
Building Restaurant 복합 유니크 인덱스 설정
invitationPurpose -> purpose로 변경
@manytoone -> @OnetoOne으로 변경 Reservation은 타임 단위이기 때문에 한 타임은 오직 한번만 사용 가능
불필요한 복합 인덱스 삭제 reservation 필드에 unique 옵션이 걸려있기 때문에, invitation과 reservation 두개를 복합인덱스로 묶지 않아도 문제 발생하지 않음
@column은 통일성을 위하여 추가함
연관관계 필드 lunchBoxReview에 대한 컬럼 어노테이션을 @column -> @joincolumn으로 수정
메뉴 name 필드 추가
buinding 필드에 지연로딩 추가
Review 테이블 상속 테이블 조인 전략으로 분리
Review 테이블 조인 전략으로 분리 전 주석 처리된 코드 삭제
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.