-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 3: JPA H2 - taco_ingredients and taco_order_tacos empty #95
Comments
I have the same problem. |
No sorry, I couldnt solve it yet. |
same issue |
The problem is because of this statement Wrapping a condition around that statement as below will resolve the issue:
This ensures that no new Order object is created if there is already an existing Order object attribute in the Model object |
Thank you, it worked! As for the TACO_INGREDIENTS being empty, make sure to implement IngredientByIdConverter from |
I use spring-boot 2.5.0 and don't meet this issue, the code just works fine. can you show your designController? |
Both with JPA implementation (chapter 3.2) and with the Jdbc Template implementation (chapter 3.1.2) the TACO_INGREDIENTS and the TACO_ORDER_TACOS tables re empty.
It seems as if its not the same order-instances (see pictures). But the @SessionAttributes("order") is annotated correctly in the DesignController and the OrderController.
Is there any way to fix this?
The text was updated successfully, but these errors were encountered: