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

Summary: createNamedQuery: Go to Declaration should also search @NamedNativeQuery annotations & mapping files
Product: javaee Reporter: terje7601
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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)