title: Cannot query entities using JOIN
body: <p>I am trying to get my head around <em>HQL</em> and run it inside the Persistence window of IntelliJ IDEA.</p>
  
  <p>Here's the thing: I can run simple queries like these:</p>
  
  <pre><code>hql&gt; SELECT offer FROM OfferEntit offer;
  hql&gt; SELECT offer FROM OfferEntit offer WHERE offer.id = 1L; 
  </code></pre>
  
  <p>but if I add something like a <code>JOIN</code>:</p>
  
  <pre><code>hql&gt; SELECT offer FROM OfferEntit offer 
       JOIN offer.owner AS owner WHERE owner.id = 1L;
  </code></pre>
  
  <p>I get an empty result. Always. No matter what I do. I have no idea why..</p>
  
  <hr>
  
  <p>Also</p>
  
  <ul>
  <li>I checked whether those records exist - yes they do</li>
  <li>I do not get any error logs</li>
  </ul>