title: What is the solution for the N+1 issue in JPA and Hibernate?
body: <p>I understand that the N+1 problem is where one query is executed to fetch N records and N queries to fetch some relational records.</p>
  
  <p>But how can it be avoided in Hibernate?</p>