JPA: NamedQuery of name: <query> not found

6.8k Views Asked by At

I'm using Netbeans 6.9.1 and TopLink Essentials for the JPA. I had followed the necessary steps for JPA connection.

Yet when I execute a named query in a particular entity. This exception always return to me

NamedQuery of name: [the query name] not found.

How is this possible and how can I resolve this?

1

There are 1 best solutions below

3
On BEST ANSWER

I had solved the problem. I can't be sure but overwriting the persistence.xml seemed to be a solution