This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If I want to decouple storage of named queries from entity classes I move them to a mapping xml file (later referred to from persistence.xml) I'm loosing the editor support for JPQL completion. In the XML, the editor does not recognize that I'm editing a JPQL query nor in the facade, the editor does not offer to complete the name of the query I want to use. Rationale for decoupling is that a change to a query is marking whole entity as changed, even tough the class structure and resulting db table is not affected. This issue may be seen as a specialized case of https://netbeans.org/bugzilla/show_bug.cgi?id=243320, which seems more general, to offer JPQL completion wherever it makes sense.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss