From 94428050a2e11908f57cffc513b637e6bd763cab Mon Sep 17 00:00:00 2001 From: Sreenath Kamath Date: Sun, 23 Aug 2020 20:42:49 +0530 Subject: [PATCH 1/4] Removing the unused interview class for now --- .../java/com/colloquio/core/Interview.java | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/main/java/com/colloquio/core/Interview.java diff --git a/src/main/java/com/colloquio/core/Interview.java b/src/main/java/com/colloquio/core/Interview.java deleted file mode 100644 index 3d19ef2..0000000 --- a/src/main/java/com/colloquio/core/Interview.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.colloquio.core; - -import lombok.Getter; -import lombok.Setter; - -import javax.validation.constraints.NotNull; - -/** - * A model class to hold the interview - */ -@Getter -@Setter -public class Interview { - - @NotNull - private String interviewId; - -} From c20d2a41e84516a2fad0e4e60246379d584e12d9 Mon Sep 17 00:00:00 2001 From: Sreenath Kamath Date: Mon, 24 Aug 2020 08:37:38 +0530 Subject: [PATCH 2/4] removing unused imports --- src/main/java/com/colloquio/db/CandidatesDao.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/colloquio/db/CandidatesDao.java b/src/main/java/com/colloquio/db/CandidatesDao.java index 665599e..39dd2bc 100644 --- a/src/main/java/com/colloquio/db/CandidatesDao.java +++ b/src/main/java/com/colloquio/db/CandidatesDao.java @@ -1,7 +1,6 @@ package com.colloquio.db; import com.colloquio.core.Candidate; -import com.colloquio.core.Skills; import org.jdbi.v3.sqlobject.config.RegisterBeanMapper; import org.jdbi.v3.sqlobject.customizer.Bind; import org.jdbi.v3.sqlobject.customizer.BindBean; From c06aa42de5b5c0f2ef8cee0002a088e2863e881b Mon Sep 17 00:00:00 2001 From: Sreenath Kamath Date: Mon, 24 Aug 2020 08:38:52 +0530 Subject: [PATCH 3/4] Introducing a dao and model for interview round skills --- .../colloquio/core/InterviewRoundSkills.java | 18 ++++++++++++++++++ .../colloquio/db/InterviewRoundSkillsDao.java | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 src/main/java/com/colloquio/core/InterviewRoundSkills.java create mode 100644 src/main/java/com/colloquio/db/InterviewRoundSkillsDao.java diff --git a/src/main/java/com/colloquio/core/InterviewRoundSkills.java b/src/main/java/com/colloquio/core/InterviewRoundSkills.java new file mode 100644 index 0000000..6fe72cb --- /dev/null +++ b/src/main/java/com/colloquio/core/InterviewRoundSkills.java @@ -0,0 +1,18 @@ +package com.colloquio.core; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +@Data +public class InterviewRoundSkills { + + @JsonProperty("id") + private long id; + + @JsonProperty("interview_round") + private InterviewRound interviewRound; + + @JsonProperty("skills") + private Skills skills; + +} diff --git a/src/main/java/com/colloquio/db/InterviewRoundSkillsDao.java b/src/main/java/com/colloquio/db/InterviewRoundSkillsDao.java new file mode 100644 index 0000000..c58fd7b --- /dev/null +++ b/src/main/java/com/colloquio/db/InterviewRoundSkillsDao.java @@ -0,0 +1,4 @@ +package com.colloquio.db; + +public interface InterviewRoundSkillsDao { +} From c563fa1159c1f947a971d18aafa4a6301824c063 Mon Sep 17 00:00:00 2001 From: Sreenath Kamath Date: Mon, 24 Aug 2020 08:39:54 +0530 Subject: [PATCH 4/4] Adding a migration for loading data to the tables --- .../000009_initial_data_load_second.xml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/resources/migrations/000009_initial_data_load_second.xml diff --git a/src/main/resources/migrations/000009_initial_data_load_second.xml b/src/main/resources/migrations/000009_initial_data_load_second.xml new file mode 100644 index 0000000..3d12b10 --- /dev/null +++ b/src/main/resources/migrations/000009_initial_data_load_second.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file