Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Correct NamedQuery is marked as error

$
0
0

Hi,

 

I have got a JPA entity defined like this:

 

@Entity
@NamedQuery(name="SEARCH_ALL_OWNER", query="SELECT o FROM Owner o")
public class Owner {

    // ...

}

 

The word "Owner" in the named query is marked red and the error message is "Can't resolve symbol Owner".

Is this a bug or do I have to switch off Persistence QL queries inspection?

 

I'm using Idea 12 Ultimate 123.94.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>