@@ -0,0 +1,1785 @@
+package org.exercise.pizza.initdb;%0A%0Aimport org.exercise.pizza.model.Cheese;%0Aimport org.exercise.pizza.model.Crust;%0Aimport org.exercise.pizza.model.Sauce;%0Aimport org.exercise.pizza.service.CheeseService;%0Aimport org.exercise.pizza.service.CrustService;%0Aimport org.exercise.pizza.service.SauceService;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.context.event.ApplicationReadyEvent;%0Aimport org.springframework.context.ApplicationListener;%0Aimport org.springframework.stereotype.Component;%0A%0A@Component%0Apublic class InitDB implements ApplicationListener%3CApplicationReadyEvent%3E %7B%0A%0A    private final Logger log = LoggerFactory.getLogger(InitDB.class);%0A%0A    @Autowired%0A    private CheeseService cheeseService;%0A%0A    @Autowired%0A    private SauceService sauceService;%0A%0A    @Autowired%0A    private CrustService crustService;%0A%0A    public void populateCheese() %7B%0A        cheeseService.save(new Cheese(%22mozzarella%22));%0A        cheeseService.save(new Cheese(%22parmesan%22));%0A        cheeseService.save(new Cheese(%22cheddar%22));%0A        log.info(%22Cheeses populated.%22);%0A    %7D%0A%0A    public void populateSauces() %7B%0A        sauceService.save(new Sauce(%22bolognese%22));%0A        sauceService.save(new Sauce(%22ragu%22));%0A        sauceService.save(new Sauce(%22bechamel%22));%0A        log.info(%22Sauces populated%22);%0A    %7D%0A%0A    public void populateCrusts() %7B%0A        crustService.save(new Crust(%22thin%22));%0A        crustService.save(new Crust(%22thick%22));%0A        crustService.save(new Crust(%22filled with cheese%22));%0A        log.info(%22Crusts populated%22);%0A    %7D%0A%0A    @Override%0A    public void onApplicationEvent(ApplicationReadyEvent event) %7B%0A        populateCheese();%0A        populateSauces();%0A        populateCrusts();%0A    %7D%0A%7D%0A

Add initdb.