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 243986 - Add refactoring support to JPA named queries
Summary: Add refactoring support to JPA named queries
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
Depends on:
Reported: 2014-04-22 08:01 UTC by terje7601
Modified: 2014-07-22 13:13 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 2014-04-22 08:01:34 UTC
Suppose i have a JPA entity like:

@NamedQuery(name="User.findAll", query="select u from User u")
public class User {

    // ...


Then I would like to be able to...

- do a Rename refactoring of the "name" attribute, and have all the uses of the named query updated

- do a Rename refactoring of the entity class, and have the "query" attribute of all named queries that use this entity updated

Ideally, there should also be a hint which checks that the "name" attribute of a named query starts with the name of the class on which it is defined, followed by a dot.