From bbbb569b552c4b4888b1fd99e7b4dbc187b85ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Mon, 6 May 2024 14:29:26 +0200 Subject: [PATCH 1/4] #22: Setup Model and DAO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Säume --- .idea/sqlDataSources.xml | 2 + .idea/sqldialects.xml | 1 - db/nursingHome.db | Bin 20480 -> 28672 bytes .../hitec/nhplus/datastorage/DaoFactory.java | 9 + .../de/hitec/nhplus/datastorage/DaoImp.java | 7 - .../de/hitec/nhplus/fixtures/Fixtures.java | 5 + .../nhplus/fixtures/MedicationFixture.java | 157 +++++++++++++++++ .../hitec/nhplus/fixtures/NurseFixture.java | 2 +- .../hitec/nhplus/fixtures/PatientFixture.java | 2 +- .../nhplus/fixtures/TreatmentFixture.java | 2 +- .../hitec/nhplus/medication/Ingredient.java | 25 +++ .../hitec/nhplus/medication/Medication.java | 152 +++++++++++++++++ .../medication/database/MedicationDao.java | 161 ++++++++++++++++++ .../nhplus/medication/database/Medication.sql | 9 + .../database/Medication_Ingredient.sql | 6 + 15 files changed, 529 insertions(+), 11 deletions(-) create mode 100644 src/main/java/de/hitec/nhplus/fixtures/MedicationFixture.java create mode 100644 src/main/java/de/hitec/nhplus/medication/Ingredient.java create mode 100644 src/main/java/de/hitec/nhplus/medication/Medication.java create mode 100644 src/main/java/de/hitec/nhplus/medication/database/MedicationDao.java create mode 100644 src/main/resources/de/hitec/nhplus/medication/database/Medication.sql create mode 100644 src/main/resources/de/hitec/nhplus/medication/database/Medication_Ingredient.sql diff --git a/.idea/sqlDataSources.xml b/.idea/sqlDataSources.xml index e75a467..f73128a 100644 --- a/.idea/sqlDataSources.xml +++ b/.idea/sqlDataSources.xml @@ -25,6 +25,8 @@