title: How to enable HQL/JPQL auto completion in IntelliJ 12
body: <p>I have problem in IntelliJ 12 to enable the JPQL/HQL auto completion support. Whenever I edit a query IDEA does not suggest me anything on Ctrl-Space.</p>
  
  <p>I have the following plugins enabled</p>
  
  <ul>
  <li>Database</li>
  <li>Hibernate</li>
  <li>Persistence Frameworks</li>
  <li>Java EE</li>
  <li>SQL</li>
  </ul>
  
  <p>Lets say we have this entity.</p>
  
  <pre><code>@Entity
  public class SubKonto extends PersistentEntity implements Serializable {    
      @OneToOne
      private Hierarchieknoten hierarchieknoten;
  
      @ManyToOne
      private SchnittstellenKonfiguration schnittstellenKonfiguration;
  
      @Column
      private String kontoNummer;
  }
  </code></pre>
  
  <p>If I write a JP Query myself I have seen that IntelliJ supports in auto completing.</p>
  
  <pre><code>"from Sub
  </code></pre>
  
  <p>with Ctrl-Space completes to</p>
  
  <pre><code>"from SubKonto
  </code></pre>
  
  <p>Then from</p>
  
  <pre><code>"from SubKonto sk where sk.k
  </code></pre>
  
  <p>with Ctrl-Space completes to</p>
  
  <pre><code>"from SubKonto sk where sk.kontoNummer
  </code></pre>
  
  <p>Can anyone give me a hint how to enable it? . </p>