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 221621 - [73cat] Navigate to JPA named query by ctrl+click is broken.
Summary: [73cat] Navigate to JPA named query by ctrl+click is broken.
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-07 11:27 UTC by kosmonaffft
Modified: 2012-11-12 10:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kosmonaffft 2012-11-07 11:27:24 UTC
There is some JPA entity with named queries, as example:

@Entity
@Table(name = "USERS")
@NamedQueries({
    @NamedQuery(name = "testQuery", query = "SELECT u from User u WHERE u.id = :id")
})
public class User implements Serializable {
...
}

And in another place (as example in DAO layer) there is some code uses this query:

entityManager.createNamedQuery("testQuery");

So, the main idea of this enhancement is navigation to named query declaration by Ctrl+Click on named query name in place, where query i used.
Comment 1 Sergey Petrov 2012-11-07 12:11:40 UTC
it should work this way since 7.2 for named queries with literal names and literal usage in createNamedQuery.
Comment 2 kosmonaffft 2012-11-07 12:19:22 UTC
In my "Product Version: NetBeans IDE Dev (Build 201211050001)" navigation is broken. Completion for query name and completion inside query works fine. So, i change status to "BUG".
Comment 3 Sergey Petrov 2012-11-07 12:28:50 UTC
ok, will try
Comment 4 Sergey Petrov 2012-11-07 14:14:15 UTC
http://hg.netbeans.org/web-main/rev/cbb7b36dc6e1 fix
Comment 5 Quality Engineering 2012-11-08 02:51:45 UTC
Integrated into 'main-golden', will be available in build *201211080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cbb7b36dc6e1
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #221621 toString() behavior was changed