#22: Setup MedicationDao
All checks were successful
Quality Check / Qualty Check (push) Successful in 9s
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:
parent
770d320a93
commit
81ff5679f6
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,9 @@ public class MedicationDao extends DaoImp<Medication> {
|
|||
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<Ingredient> ingredients = medication.getIngredients();
|
||||
for (int i = 0; i < ingredients.size(); i++) {
|
||||
|
|
Loading…
Reference in a new issue