title: HQL left join of un-related entities
body: <p>I have 2 entities, <code>A</code> and <code>B</code>. They are related but I do not want to add the relationship mapping to the beans.</p>
  
  <p>How can we use <strong>left outer join between <code>A</code> and <code>B</code> using HQL or criteria</strong>?</p>
  
  <p>There are some workarounds available for this,</p>
  
  <ol>
  <li>Use Native SQL as told <a href="https://stackoverflow.com/q/3753004/507864">here</a>.</li>
  <li>Add a relationship and use <strong>select a from A a left join a.b</strong>.</li>
  <li>We can do a <strong>inner join</strong> in the HQL as <strong>select * from A a, B b where a.some=b.some</strong></li>
  </ol>
  
  <p>I was always going back these 2 options, is there any alternative for this? Or this in not possible?</p>