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

Refactor: 생명주기에 따른 JPA 연관관계 제거 #161

Merged
merged 17 commits into from
May 14, 2024

Conversation

Youthhing
Copy link
Member

@Youthhing Youthhing commented May 13, 2024

작업 목록

불필요한 JPA의 연관관계를 제거함.

  1. 교육과 세션의 연관관계를 제거함
  • 대신 Long sessionId를 컬럼에 남김
  1. 교육에 기수id 컬럼을 추가함
  2. 퀴즈 Table에 generation_id 컬럼을 삭제
  3. 결승진출자와 멤버의 연관관계 제거
  • 단, memberId 컬럼은 유지
  1. 우승자와 멤버의 연관관계 제거
  • 단, memberId 컬럼은 유지
  1. 문제와 득점자 사이의 연관관계 제거
  • 단, memberId 컬럼은 유지
  1. 득점자와 멤버 사이의 연관관계 제거
  • 단, memberId 컬럼은 유지
  1. 멤버와 기수의 연관관계 제거
  • 단, 합격 기수 번호를 추가 'passed_generation_number'

Youthhing added 14 commits May 9, 2024 18:05
- 기수 ID 대신 합격 기수의 번호를 활용
- findAll로 모든 멤버를 조회하던 로직에서 Enum 그룹화를 통한 InQuery 사용
- passed_generation_number 로 변경
- Education의 세션 대신 sessionId 외래키 참조 설정 -> 생명 주기 제거
- in query를 통한 득점자, 정답자 조회 로직 수정
- findAllByGeneration으로 수정
Copy link
Member

@gikhoon gikhoon left a comment

Choose a reason for hiding this comment

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

리뷰 몇개 남겼습니다

@Youthhing Youthhing merged commit b24e897 into develop May 14, 2024
1 check passed
@Youthhing Youthhing deleted the refactor/entity-relation-remove-0509 branch May 14, 2024 12:36
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