From 6c72dacb20959dfcbcf267387c4d5057674df6bf Mon Sep 17 00:00:00 2001 From: Maximilian Leopold Date: Tue, 26 Mar 2019 14:33:01 +0100 Subject: [PATCH 1/2] Console now shows executed SQL Statements --- src/main/resources/application.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 3fd5f91..e29f753 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,4 +2,5 @@ spring.datasource.url=jdbc:mariadb://seserver.se.hs-heilbronn.de:3406/buga19Geoc spring.datasource.username=BuGa19GeocachingUser spring.datasource.password=GeocachingPw spring.datasource.driver-class-name=org.mariadb.jdbc.Driver -spring.jpa.hibernate.ddl-auto=update \ No newline at end of file +spring.jpa.hibernate.ddl-auto=update +spring.jpa.show-sql=true \ No newline at end of file From 98e501c7b0c46131d09deda496477a1d15aebcb8 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 26 Mar 2019 22:33:21 +0100 Subject: [PATCH 2/2] station has a field for a solution to a possible question now, also added some testdata --- .../java/hhn/labsw/bugageocaching/entities/Station.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/hhn/labsw/bugageocaching/entities/Station.java b/src/main/java/hhn/labsw/bugageocaching/entities/Station.java index bdcf98d..fe1344f 100644 --- a/src/main/java/hhn/labsw/bugageocaching/entities/Station.java +++ b/src/main/java/hhn/labsw/bugageocaching/entities/Station.java @@ -15,6 +15,7 @@ public class Station { private double longitude; private double lattitude; private int code; + private String solution; public Station() { } @@ -58,4 +59,12 @@ public class Station { public void setCode(int code) { this.code = code; } + + public String getSolution() { + return solution; + } + + public void setSolution(String solution) { + this.solution = solution; + } }