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.
Currently persistence.xml refactoring support only works for entity classes that are in the same project as the persistence.xml file. It should work also when entities are in a different project than the file.
Changing category to persistence.
This doesn't look like a valid defect, I don't think it was ever planned. It especially requires "backward" dependencies among projects.