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
426e1100fc
commit
848e625f3a
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