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

Introducing Resources for Mapping Skills to Interview Rounds #36

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/main/java/com/colloquio/core/Interview.java

This file was deleted.

18 changes: 18 additions & 0 deletions src/main/java/com/colloquio/core/InterviewRoundSkills.java
Original file line number Diff line number Diff line change
@@ -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;

}
1 change: 0 additions & 1 deletion src/main/java/com/colloquio/db/CandidatesDao.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/colloquio/db/InterviewRoundSkillsDao.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.colloquio.db;

public interface InterviewRoundSkillsDao {
}
22 changes: 22 additions & 0 deletions src/main/resources/migrations/000009_initial_data_load_second.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>

<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<changeSet id="initial_data_load" author="">
<insert tableName="interview_rounds">
<column name="name" value="Coding"/>
<column name="description" value="A round to evaluate the coding skills of candidate"/>
<column name="created_at" value="now()"/>
<column name="updated_at" value="now()"/>
</insert>
<insert tableName="interview_round_skills">
<column name="interview_round_id" value="1"/>
<column name="skill_id" value="1"/>
<column name="created_at" value="now()"/>
<column name="updated_at" value="now()"/>
</insert>
</changeSet>
</databaseChangeLog>