title: How to left join fetch multiple children in Hibernate?
body: <p>I'm working with hibernate and I'm having troubles creating an hql query that fetches all the children of my object.</p>
  
  <p>For example: The Object User has a list of Cars and a list of Friends.</p>
  
  <p>To get a user with his cars I would use following query:</p>
  
  <pre><code>from User u left join fetch u.cars where u.id = ?
  </code></pre>
  
  <p>This works fine, so I thought it would be easy to get a user with his cars and with his friends with following query:</p>
  
  <pre><code>from User u left join fetch u.cars left join fetch u.friends where u.id = ?
  </code></pre>
  
  <p>But this gives me following error:</p>
  
  <blockquote>
    <p>HibernateException: cannot simultaneously fetch multiple bags</p>
  </blockquote>
  
  <p>Now my question is: what is the right way to fetch multiple children in hibernate? </p>