Intellij 9 UE does not find my named queries in a JPA context.
Query q = em.createNamedQuery("selectAclEntriesByUser");
will be marked as incorrect with "cannot resolve query". The named query exists and is declared via annotations in the same file.
Is this the expected behaviour or is there a way to get the IDE to resolve named queries?