JPA Query Errors
Hi,
Is there any way to disable (only) the highlight of JPA query errors? I regularly use queries such as ...createQuery("From User").getResultList(), but IDEA does not like this short form and thus marks the query as an error along with the whole file.
Please sign in to leave a comment.
Kris ?????:
If you use Demetra (IntelliJ IDEA 6), then unfortunately there's no way
to do it. You can use the complete query form "select o from User o"
instead. In Selena EAP we have Hibernate support, so this will be fine.
Thanks. It doesn't stop compilation so I can live with it, it is just a bit annoying.
Or do createQuery(""+"FROM User AS u") - any concatenation seems to turn off parsing