title: Why does Hibernate query have compile error in IntelliJ?
body: <p>I have this Hibernate code: </p>
  
  <pre><code>Query q = session.createQuery("from MyTable where status = :status");
  </code></pre>
  
  <p>It compiles and works fine..  </p>
  
  <p>But in IntelliJ I get this error reported:</p>
  
  <blockquote>
    <p>Can't resolve expression, Can't
    resolve symbol 'MyTable'</p>
  </blockquote>
  
  <p>Why is IntelliJ complaining??</p>