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.
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!
CodePudding user response:
I mapped the wrong field. I should've mapped it by the foreign key instead of id.