From 81ff5679f65bd50332972201bc1c8b04b28a3062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Sun, 5 May 2024 11:15:53 +0200 Subject: [PATCH] #22: Setup MedicationDao MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Säume --- src/main/java/de/hitec/nhplus/medication/MedicationDao.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/hitec/nhplus/medication/MedicationDao.java b/src/main/java/de/hitec/nhplus/medication/MedicationDao.java index 988b5d3..1c27561 100644 --- a/src/main/java/de/hitec/nhplus/medication/MedicationDao.java +++ b/src/main/java/de/hitec/nhplus/medication/MedicationDao.java @@ -23,8 +23,9 @@ public class MedicationDao extends DaoImp { try { StringJoiner SQL = new StringJoiner(";"); SQL.add( - "INSERT INTO medication (name, manufacturer, possibleSideEffects, administrationMethod, currentMethod) " + - "VALUES (?, ?, ?, ?, ?);" + "INSERT INTO medication " + + "(name, manufacturer, possibleSideEffects, administrationMethod, currentMethod) " + + "VALUES (?, ?, ?, ?, ?);" ); final ObservableList ingredients = medication.getIngredients(); for (int i = 0; i < ingredients.size(); i++) {