IntelliJ + Spring: how to enable table names checking in HQL queries?
<p>I'm using Spring Boot 1.4.2 and both Hibernate and JPA in my project. I use IntelliJ Community 2016.2.4, same as my colleague. The difference is that when he types something in HQL (i.e. @Query("SELECT id FROM usesrs)) it automatically checks the table names against the real DB structure - there is no "usesrs" table, but there is a "user" table. So his project doesn't compile unless he corrects it - what a wonderful feature! Sometimes it takes me a lot of time to spot such bugs...</p>

<p>Can you tell me how can I enable this in IntelliJ? What I tried:</p>

<p>1) When I go to <code>Preferences / Editor / Language injections / "+" sign / Java Parameter</code> I don't see SQL on the list, not speaking about HQL (but JQL is there which is crazy...). Anyway looks like I want to enable something deeper than just plain syntax check, it has to check against the database structure.</p>

<p>2) When I go to <code>File / Project structure / Facets / "+" sign</code> I don't see JPA there, just some Android options and Java-Gradle.</p>

<p>Any suggestions here?</p>