From 848e625f3a00810171a1374f02c16c20215ff7de Mon Sep 17 00:00:00 2001 From: Mathis Kral Date: Sun, 5 Nov 2023 11:00:49 +0100 Subject: [PATCH] Add CustomOrderDataInitializer --- .../order/CustomOrderDataInitializer.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/catering/order/CustomOrderDataInitializer.java diff --git a/src/main/java/catering/order/CustomOrderDataInitializer.java b/src/main/java/catering/order/CustomOrderDataInitializer.java new file mode 100644 index 0000000..193d5af --- /dev/null +++ b/src/main/java/catering/order/CustomOrderDataInitializer.java @@ -0,0 +1,18 @@ +package catering.order; + +import org.salespointframework.core.DataInitializer; +import org.springframework.stereotype.Component; + +@Component +public class CustomOrderDataInitializer implements DataInitializer { + private CustomOrderRepository orderRepository; + + public CustomOrderDataInitializer(CustomOrderRepository orderRepository) { + this.orderRepository = orderRepository; + } + + @Override + public void initialize() { + // initialize custom orders + } +}