Skip to content

Commit

Permalink
[Fix] application 내부 빠진 데이터 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
luna156 committed Nov 24, 2024
1 parent 5a8c9c0 commit b1008cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ public class Application extends DataEntity {
@JoinColumn(name = "applicant_id")
private Applicant applicant;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "meeting_time_id")
private MeetingTime meetingTime;

@Column(name = "form_result")
@Enumerated(EnumType.STRING)
private ResultType formResult;

@Column(name = "meeting_result")
@Enumerated(EnumType.STRING)
private ResultType meetingResult;

@OneToMany(mappedBy = "application", orphanRemoval = true, cascade = CascadeType.ALL)
private List<Response> responseList;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public class MeetingTime extends DataEntity {
@JoinColumn(name = "recruiting_id")
private Recruiting recruiting;

@OneToMany(mappedBy = "meeting_time", orphanRemoval = true, cascade = CascadeType.ALL)
@OneToMany(mappedBy = "meetingTime", orphanRemoval = true, cascade = CascadeType.ALL)
private List<Application> applicationList;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.likelion.innerjoin.post.model.entity;

public enum ResultType {
PENDING, PASS, FAIL
}

0 comments on commit b1008cf

Please sign in to comment.