Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323517 - Renaming package containing JPA entity doesn't invoke refactoring participant
Summary: Renaming package containing JPA entity doesn't invoke refactoring participant
Status: CLOSED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dali.general-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 12:31 EDT by Allan Zhang CLA
Modified: 2010-08-24 12:46 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Zhang CLA 2010-08-24 12:31:00 EDT
Build Identifier: org.eclipse.jpt.core_2.3.1.v201007232310.jar

WTP/Dali has a refactoring participant which updates persistence.xml when an entity is renamed or moved to a new package.  However, if you rename the package itself,  there is no item for it in the preview, and persistence.xml is not updated.

Reproducible: Always

Steps to Reproduce:
1. Create JPA project
2. Create a new entity with a package
3. Add/ensure entity class in persistence.xml
4. Rename the package doesn't update the persistence.xml
Comment 1 Karen Butzke CLA 2010-08-24 12:43:07 EDT
We actually don't have any refactoring participants in 2.3.1. I just added this support in 3.0M1 (bug 209489), would love more testing of that work :). Refactor a package and update the persistence.xml is one of the use cases supported.

In the refactoring preview dialog for the type rename do you have the 'Update fully qualified names in non-Java text files' checkbox checked? This would explain why it appears that Dali support the Refactor Rename in 2.3.1
Comment 2 Allan Zhang CLA 2010-08-24 12:46:27 EDT
Incorrect component;-)