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.

3 comments

Kris ?????:

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.

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.

0

Thanks. It doesn't stop compilation so I can live with it, it is just a bit annoying.

0

Or do createQuery(""+"FROM User AS u") - any concatenation seems to turn off parsing

0

Please sign in to leave a comment.