while using fetch = FetchType.EAGER for more than one field I get this exception To fetch from multiple table in hibernate what else should I use, My Code is down below enter image description here
Asked
Active
Viewed 691 times
0
-
Copy your code in the question, do not use images of it.. – Vasan Apr 06 '18 at 05:38
-
I solved this issue by using @Fetch(value = FetchMode.SUBSELECT) – KUNDAN KUMAR Apr 06 '18 at 05:56
1 Answers
0
You can avoid the exception if you switch from List<> to Set<>.
@OneToMany(...)
Set<...> ....

domenic_K
- 134
- 12