From 57b53012082c64d9414f6433bbb9704fc7bda8a7 Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Sun, 5 Feb 2023 08:44:19 +0100 Subject: [PATCH] add: ein paar mehr Beispieldaten --- .../essensbestellungsverwaltung/Database.java | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/Database.java b/src/main/java/com/bib/essensbestellungsverwaltung/Database.java index 090b7d6..4cbc876 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/Database.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/Database.java @@ -393,10 +393,34 @@ public class Database { VALUES('2','1','1','8');"""); sqls.add(""" INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) - VALUES('3','2','2','5');"""); + VALUES('3','2','1','4');"""); sqls.add(""" INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) - VALUES('4','2','2','7');"""); + VALUES('4','2','1','8');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('5','1','2','5');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('6','1','2','7');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('7','2','2','5');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('8','2','2','7');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('9','1','3','4');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('10','1','3','8');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('11','2','3','4');"""); + sqls.add(""" + INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) + VALUES('12','2','3','6');"""); try (Connection conn = connect(); Statement stmt = conn.createStatement()) { for (String sql : sqls) {