From a03a2a6a9aff7968bf43df33fe80c1b33c872838 Mon Sep 17 00:00:00 2001 From: Sona Markosyan Date: Sun, 30 Jan 2022 22:52:11 +0100 Subject: [PATCH] adding Itinerary class and repository interface --- .../java/hs/fulda/de/ci/exam/project/Itinerary.java | 10 ++++++++++ .../fulda/de/ci/exam/project/ItineraryRepository.java | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/main/java/hs/fulda/de/ci/exam/project/Itinerary.java create mode 100644 src/main/java/hs/fulda/de/ci/exam/project/ItineraryRepository.java diff --git a/src/main/java/hs/fulda/de/ci/exam/project/Itinerary.java b/src/main/java/hs/fulda/de/ci/exam/project/Itinerary.java new file mode 100644 index 0000000..00a92ce --- /dev/null +++ b/src/main/java/hs/fulda/de/ci/exam/project/Itinerary.java @@ -0,0 +1,10 @@ +package hs.fulda.de.ci.exam.project; + +import java.util.ArrayList; + +public class Itinerary { + + public Itinerary(Airport start_airport, Airport final_airport) { + + } +} diff --git a/src/main/java/hs/fulda/de/ci/exam/project/ItineraryRepository.java b/src/main/java/hs/fulda/de/ci/exam/project/ItineraryRepository.java new file mode 100644 index 0000000..8c4ea5f --- /dev/null +++ b/src/main/java/hs/fulda/de/ci/exam/project/ItineraryRepository.java @@ -0,0 +1,8 @@ +package hs.fulda.de.ci.exam.project; + +import java.util.ArrayList; + +public interface ItineraryRepository { + ArrayList findAll(); + void save(Itinerary itinerary); +}