From e55e96ea5164dbccda67ddb2803266385b93d839 Mon Sep 17 00:00:00 2001 From: Sewaaa Date: Wed, 27 Dec 2023 16:44:59 +0100 Subject: [PATCH] Service ConditionData + Interface --- .../java/model/service/condition/ConditionData.java | 10 ++++++++++ .../service/condition/ConditionDataInterface.java | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/main/java/model/service/condition/ConditionData.java create mode 100644 src/main/java/model/service/condition/ConditionDataInterface.java diff --git a/src/main/java/model/service/condition/ConditionData.java b/src/main/java/model/service/condition/ConditionData.java new file mode 100644 index 0000000..f9661e8 --- /dev/null +++ b/src/main/java/model/service/condition/ConditionData.java @@ -0,0 +1,10 @@ +package model.service.condition; + +import model.DAO.DAOCondition; +import model.entity.Condition; + +public class ConditionData implements ConditionDataInterface{ + + DAOCondition daoCondition=new DAOCondition(); + public Condition getConditionByID(int id){return daoCondition.getConditionByID(id);} +} diff --git a/src/main/java/model/service/condition/ConditionDataInterface.java b/src/main/java/model/service/condition/ConditionDataInterface.java new file mode 100644 index 0000000..529850d --- /dev/null +++ b/src/main/java/model/service/condition/ConditionDataInterface.java @@ -0,0 +1,9 @@ +package model.service.condition; + +import model.entity.Condition; +import model.entity.User; + +public interface ConditionDataInterface { + + public Condition getConditionByID(int id); +}