on-internet
← Community

What is the difference between JOIN and JOIN FETCH when using JPA and Hibernate

Stack Overflow ·

Please help me understand where to use a regular JOIN and where a JOIN FETCH. For example, if we have these two queries FROM Employee emp JOIN emp.department dep and FROM Employee emp JOIN FETCH emp.department dep Is there any difference between them? If yes, which one to use when?

Comments

Sign in or sign up to comment and upvote.

No comments yet.