Idea 7 m2, ejb3 inspection error

I find a some bug in code inspection.

Code:
...
return em.createQuery("from Country").getResultList();

The problem is in Idea, that considers ejb3-query "From Country" as a mistake

??.
Idea 7 M2 7126

0
Avatar
Permanently deleted user

Hello Alexander,

I find a some bug in code inspection.

Code:
...
return em.createQuery("from Country").getResultList();
The problem is in Idea, that considers ejb3-query "From Country" as a
mistake


Do you have a data source configured?

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

Yes of course, datasource is configured.

0

As far as I see you are trying to use Hibernate QL syntax in JPA API.
In JPA this query should look like "select Object(o) from Country o".

Alexander Korolev wrote:

I find a some bug in code inspection.

Code:
...
return em.createQuery("from Country").getResultList();

The problem is in Idea, that considers ejb3-query "From Country" as a mistake

??.
Idea 7 M2 7126

0

请先登录再写评论。