The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

639732 (2) [Avatar] Offline
In chapter 3, before JPA section starts, I have tried the samples with spring JDBC. The tables I created are
1. Ingredient
3. Taco_Ingredients
4. Taco_Order
5. Taco_Order_Tacos, with h2 database.

All tables are updating except 'Taco_Order_Tacos' table. The code in "" has the following snippet in its "save" method.

List<Taco> tacos = order.getTacos();"Lengh of Tacos = {0}", tacos.size());
for (Taco taco : tacos) {
saveTacoToOrder(taco, orderId);

I hope it is not getting any Tacos from order.getTacos(). I make sure that Tacos gets added into Order's tacos list via order.addDesign(saved); where 'saved' is the taco designed from user.

After order is done, If I query as "select * from Taco_Order_Tacos", I am getting empty table.
Could some one pl provide the solution for this.


639732 (2) [Avatar] Offline
working on this.