As it is the final code of the chapter 5, has one slight problem that it creates no entry in the taco_order_tacos table, and hence the link between the taco_order and taco is lost.
This is perhaps happening because the Modelattribute in DesignController always passes a New TacoOrder
@ModelAttribute(name = "order", value = "order")
public TacoOrder order() {
return new TacoOrder();
}
As it is the final code of the chapter 5, has one slight problem that it creates no entry in the
taco_order_tacos
table, and hence the link between the taco_order and taco is lost.This is perhaps happening because the Modelattribute in DesignController always passes a New TacoOrder