diff --git a/src/main/java/co/projectcodex/hackathon/App.java b/src/main/java/co/projectcodex/hackathon/App.java index 697ec24..42ca027 100644 --- a/src/main/java/co/projectcodex/hackathon/App.java +++ b/src/main/java/co/projectcodex/hackathon/App.java @@ -54,7 +54,7 @@ public static void main(String[] args) { staticFiles.location("/public"); port(getHerokuAssignedPort()); - Jdbi jdbi = getJdbiDatabaseConnection("jdbc:postgresql://localhost/spark_hbs_jdbi"); + Jdbi jdbi = getJdbiDatabaseConnection("jdbc:postgresql://localhost/spark_hbs_jdbi?username=macgyver&password=mac123"); get("/", (req, res) -> { diff --git a/src/main/java/co/projectcodex/hackathon/Doctor.java b/src/main/java/co/projectcodex/hackathon/Doctor.java new file mode 100644 index 0000000..9c43db4 --- /dev/null +++ b/src/main/java/co/projectcodex/hackathon/Doctor.java @@ -0,0 +1,41 @@ +package co.projectcodex.hackathon; + +public class Doctor { + + String firstName; + String lastName; + String specialty; + + public Doctor() { + } + + public Doctor(String firstName, String lastName, String specialty) { + this.firstName = firstName; + this.lastName = lastName; + this.specialty = specialty; + } + + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public String getSpecialty() { + return specialty; + } + + public void setSpecialty(String specialty) { + this.specialty = specialty; + } +} diff --git a/src/main/resources/templates/index.handlebars b/src/main/resources/templates/index.handlebars index 1ed6eff..08ae5e7 100644 --- a/src/main/resources/templates/index.handlebars +++ b/src/main/resources/templates/index.handlebars @@ -11,7 +11,7 @@