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 253235 - createNamedQuery: Go to Declaration should also search @NamedNativeQuery annotations & mapping files
Summary: createNamedQuery: Go to Declaration should also search @NamedNativeQuery anno...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
Depends on:
Reported: 2015-06-29 13:15 UTC by terje7601
Modified: 2015-06-29 13:15 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2015-06-29 13:15:22 UTC
Suppose you have:

Then doing "Go to Declaration" (Ctrl + click) on the query name only works if the query is declared in a @NamedQuery annotation. It should also work if the query is declared in:
- a @NamedNativeQuery annotation
- a "named-query" or "named-native-query" element in a mapping file (i.e. the default orm.xml or any mapping files that are defined in persistence.xml)

Product Version: NetBeans IDE Dev (Build 201506220001)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)