It\'s my first question here on stack, so please be gentle :D
I\'m trying to create hibernate OneToMany relationship. When I try to fetch some data from my DB, I\'m
I had similar issue and in my case nothing of this didnt help.
Helped this one approach:
@OneToMany(cascade = CascadeType.ALL)
@JoinColumn(name = "order_id")
@Fetch(value = FetchMode.SUBSELECT)
private List orderLines;
name = "order_id" is a foreign key column from Product table.
And i didnt put anything in Product entity.