title: Intellij "Query can't resolve symbol." error with facet set
body: <p>I'm trying to implement query in my code as following:</p>
  
  <pre><code>@NamedQuery( name = "Comment.getComments",
                      query = "SELECT c FROM Comment c WHERE c.game=:game")
  </code></pre>
  
  <p>Class <em>Comment</em> has following code in it:</p>
  
  <pre><code>@Entity
  @NamedQuery( name = "Comment.getComments",
          query = "SELECT c FROM Comment c WHERE c.game=:game")
  public class Comment {
      @Id
      @GeneratedValue
      private Integer ident;
      private String player;
      private String game;
      private String comment;
      @Temporal(TemporalType.DATE)
      private Date commentedOn;
  
      public Comment() {
  
      }
  
      public Comment(String player, String game, String comment, Date commentedOn) {
          this.player = player;
          this.game = game;
          this.comment = comment;
          this.commentedOn = commentedOn;
      }
  </code></pre>
  
  <p>In query <em>Comment c</em> is underlined red and I'm getting error
   'Can't resolve symbol'.</p>
  
  <p>I know that it has something to do with framework settings.</p>
  
  <p>List of things I've tried: </p>
  
  <ul>
  <li>File -> Invalidate caches/ Restart</li>
  <li>Set up Facet for my module with Hibernate as Default JPA provider. (I've also attached screenshot of setting)</li>
  <li>Reimport Maven (since I'm using it in project)</li>
  </ul>
  
  <p>Does anyone know, what is causing the problem?</p>
  
  <p><a href="https://i.stack.imgur.com/aA7iM.jpg" rel="nofollow noreferrer">Facet setting.</a></p>