diff --git a/src/main/java/com/likelion/innerjoin/post/model/entity/Application.java b/src/main/java/com/likelion/innerjoin/post/model/entity/Application.java index ea979da..be616cd 100644 --- a/src/main/java/com/likelion/innerjoin/post/model/entity/Application.java +++ b/src/main/java/com/likelion/innerjoin/post/model/entity/Application.java @@ -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 responseList; } diff --git a/src/main/java/com/likelion/innerjoin/post/model/entity/MeetingTime.java b/src/main/java/com/likelion/innerjoin/post/model/entity/MeetingTime.java index 9b6e654..278fd59 100644 --- a/src/main/java/com/likelion/innerjoin/post/model/entity/MeetingTime.java +++ b/src/main/java/com/likelion/innerjoin/post/model/entity/MeetingTime.java @@ -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 applicationList; } diff --git a/src/main/java/com/likelion/innerjoin/post/model/entity/ResultType.java b/src/main/java/com/likelion/innerjoin/post/model/entity/ResultType.java new file mode 100644 index 0000000..a342f2b --- /dev/null +++ b/src/main/java/com/likelion/innerjoin/post/model/entity/ResultType.java @@ -0,0 +1,5 @@ +package com.likelion.innerjoin.post.model.entity; + +public enum ResultType { + PENDING, PASS, FAIL +}