Diana 8526 and JPA query parsing

Hi.

I use JPA for my database access, and have configured a module with the jpa facet. Query strings (named queries, lookups etc) seems to be parsed correctly.

But in another module, containing EJBs and depending on the JPA module, query strings are parsed incorrectly. I've attached a screenshot.

The strings provided to createNamedQuery are sometimes parsed (and reported as errors) and sometimes not. It seems to be at random.

Regards,

Daniel



Attachment(s):
jpa.jpg
4 comments
Comment actions Permalink

As for your screenshot, the query doesn't conform to spec (I mean LIMIT
keyword). And what's the error message under result.timestamp

0
Comment actions Permalink

I have since replaced the query by: "SELECT min(d.timestamp) FROM DwellTimeAnalysisResult d"

And still, DwellTimeAnalysisResult is an unknown entity to IDEA - The entity is defined in my jpa module and the query parses correctly if typed as a string in a @NamedQuery.

0
Comment actions Permalink

The unresolved entity issue is fixed.
Named query names should resolve ok as well.
See the next EAP or in build numbers #8550 and above.

Thank you for your report.

Please report any random behavior in future.

Daniel Nielsen wrote:

I have since replaced the query by: "SELECT min(d.timestamp) FROM
DwellTimeAnalysisResult d"

And still, DwellTimeAnalysisResult is an unknown entity to IDEA - The
entity is defined in my jpa module and the query parses correctly if
typed as a string in a @NamedQuery.

0
Comment actions Permalink

Thank you for your reply. I'm looking forward to the next EAP already.

On that note, I'd like to point out the issue described here:

http://www.intellij.net/forums/thread.jspa?threadID=275482

0

Please sign in to leave a comment.