Skip to content
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

Questions with IngredientRef domain #22

Open
KianYang-Lee opened this issue Oct 25, 2023 · 2 comments
Open

Questions with IngredientRef domain #22

KianYang-Lee opened this issue Oct 25, 2023 · 2 comments

Comments

@KianYang-Lee
Copy link

A domain IngredientRef is mentioned and created somewhere in chap 1 or 2. But by the end of chapter 3 (starting from Spring Data JPA) the domain of IngredientRef is already not mentioned.

What is its significance? It is quite confusing.

@hasanraj3100
Copy link

hasanraj3100 commented Dec 6, 2023

Exactly. The problem was created right before the 3.2 starts. In JdbcOrderRepository, he created a method saveIngredientRefs(long, List<IngredientRefs>). and called this method from saveTaco() . But while calling the method he passed tacoId and taco.getIngredients() as parameters.. But taco.getIngredients() returns a List<Ingredient> where the saveIngredientRefs() requires a List<IngredientRef>. I am also confused what to do now.

If you have found any solution please let me know.

@Nick-Mathews
Copy link

The solution that I used for this issue was found in another thread. Leaving the link here for anyone still having this problem.

#11 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants