Add CustomOrderDataInitializer

This commit is contained in:
Mathis Kral 2023-11-05 11:00:49 +01:00 committed by Simon Bruder
parent 426e1100fc
commit 848e625f3a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View 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
}
}