Issue
I have two entries (OrderProduct) in the database pointing at the same parent (ShopOrder) entry. But when I fetch the parent entry it only contains one of the child entries in the @OneToMany List. I'm not sure what I'm doing wrong.
ShopOrder DBO href="https://i.stack.imgur.com/AWdoY.png" rel="nofollow noreferrer">
ProductOrder entries in the DB
What I'm getting out of the DB
I'll gladly provide more info/code snippets if necessary. Thank you in advance!
Solution
I mapped the wrong field. I should've mapped it by the foreign key instead of id.
Answered By - Purple Gang
Answer Checked By - Robin (JavaFixing Admin)