Add CustomOrderDataInitializer

This commit is contained in:
Mathis Kral 2023-11-05 11:00:49 +01:00 committed by Simon Bruder
parent 5b4aaec73a
commit 4269e278a5
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
}
}