#22: Setup MedicationDao
All checks were successful
Quality Check / Qualty Check (push) Successful in 9s

Signed-off-by: Dominik Säume <Dominik.Saeume@hmmh.de>
This commit is contained in:
Dominik Säume 2024-05-05 11:15:53 +02:00
parent 770d320a93
commit 81ff5679f6
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C

View file

@ -23,8 +23,9 @@ public class MedicationDao extends DaoImp<Medication> {
try { try {
StringJoiner SQL = new StringJoiner(";"); StringJoiner SQL = new StringJoiner(";");
SQL.add( SQL.add(
"INSERT INTO medication (name, manufacturer, possibleSideEffects, administrationMethod, currentMethod) " + "INSERT INTO medication "
"VALUES (?, ?, ?, ?, ?);" + "(name, manufacturer, possibleSideEffects, administrationMethod, currentMethod) "
+ "VALUES (?, ?, ?, ?, ?);"
); );
final ObservableList<Ingredient> ingredients = medication.getIngredients(); final ObservableList<Ingredient> ingredients = medication.getIngredients();
for (int i = 0; i < ingredients.size(); i++) { for (int i = 0; i < ingredients.size(); i++) {