mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Add CustomOrderDataInitializer
This commit is contained in:
parent
5b4aaec73a
commit
4269e278a5
18
src/main/java/catering/order/CustomOrderDataInitializer.java
Normal file
18
src/main/java/catering/order/CustomOrderDataInitializer.java
Normal file
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue