简体   繁体   English

JPA:名称命名: <query> 未找到

[英]JPA: NamedQuery of name: <query> not found

I'm using Netbeans 6.9.1 and TopLink Essentials for the JPA. 我正在为JPA使用Netbeans 6.9.1和TopLink Essentials。 I had followed the necessary steps for JPA connection. 我已经按照JPA连接的必要步骤进行操作。

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? 这怎么可能,我该如何解决这个问题呢?

I had solved the problem. 我解决了这个问题。 I can't be sure but overwriting the persistence.xml seemed to be a solution 我无法确定,但覆盖persistence.xml似乎是一个解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM