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.

Bug 244353 - Editor support for JPQL named queries stored in mapping-file
Summary: Editor support for JPQL named queries stored in mapping-file
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 14:03 UTC by zoladkow
Modified: 2016-07-07 08:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zoladkow 2014-05-07 14:03:04 UTC
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.
Comment 1 Martin Balin 2016-07-07 08:56:12 UTC
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