title: Hibernate join to class which have property of superclass
body: <p>I have following relationship:</p>
  
  <pre><code>class A
  {
    id;
  }
  
  class B extends A
  {
     //other fields...
  }
  
  class C
  {
      A a; 
  }
  </code></pre>
  
  <p>I want to write HQL like this:</p>
  
  <pre><code>select b from B as b left join C c on c.a.id = b.id. 
  </code></pre>
  
  <p>but I am getting an org.hibernate.hql.ast.QuerySyntaxException: Path expected for join!</p>
  
  <p>The left join is important for me in this situation. I tried by using sub-select but there is performance issue.</p>
  
  <p>Please help me :)</p>