-
Notifications
You must be signed in to change notification settings - Fork 9
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
✨ [Feature] 지원자 목록 확인 API #804
The head ref may contain hidden characters: "real-\uC9C0\uC6D0\uC790\uBAA9\uB85D-\uD655\uC778-API"
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## recruit-dev #804 +/- ##
=================================================
- Coverage 75.72% 75.22% -0.50%
+ Complexity 1086 1085 -1
=================================================
Files 366 366
Lines 4787 4804 +17
Branches 390 397 +7
=================================================
- Hits 3625 3614 -11
- Misses 994 1013 +19
- Partials 168 177 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인부탁드립니당
gg-data/src/main/java/gg/data/recruit/application/ApplicationAnswerText.java
Show resolved
Hide resolved
...admin/controller/response/GetRecruitmentApplicationDto$Form$CheckListForm$MapStructImpl.java
Outdated
Show resolved
Hide resolved
gg-recruit-api/src/main/java/gg/recruit/api/admin/controller/RecruitmentAdminController.java
Outdated
Show resolved
Hide resolved
gg-recruit-api/src/main/java/gg/recruit/api/admin/controller/RecruitmentAdminController.java
Show resolved
Hide resolved
@@ -12,10 +11,6 @@ | |||
@NoArgsConstructor(access = lombok.AccessLevel.PROTECTED) | |||
@DiscriminatorValue("TEXT") | |||
public class ApplicationAnswerText extends ApplicationAnswer { | |||
|
|||
@Id | |||
private Long id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 ID빠지면 flyway도 수정해줘야 하지 않나요?? 여기 ID값이 있으면 applicationAnswer삭제시에 연결된 applicationAnswerText나 applicationAnswerCheckList에 삭제쿼리가 같이 안나간다는거죠?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 그렇습니다 우선 id 컬럼 자체는 부모 엔티티에 정의되어 있으면 자동상속이 이루어지는것 같습니다. 문제가 되는 부분이라면 원래대로 롤백할게요. flyway는 동일하게 작동합니다
@@ -44,6 +48,9 @@ public class Application extends BaseTimeEntity { | |||
@Column(length = 15, nullable = false) | |||
private ApplicationStatus status; | |||
|
|||
@OneToMany(mappedBy = "application", fetch = FetchType.LAZY) | |||
private Set<ApplicationAnswer> applicationAnswers = new HashSet<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 set으로 하신 이유가 따로 있나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
n+1 때문에 엔티티 그래프로 "applicationAnswers", "applicationAnswers.question.checkLists" 데이터를 조인하는 과정에서 여러 리스트 자료를 명시하는게 허용이 안되더라구요 checkLists는 이미 구현된 내용이고 applicationAnswers는 이번에 양방향을 추가한 내용이기 때문에 해당 부분을 set으로 대체했습니다.
2de3f8b
to
268410e
Compare
264a5d5
to
d17abe4
Compare
📌 개요
💻 작업사항
💡Issue 번호