Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323517

Summary: Renaming package containing JPA entity doesn't invoke refactoring participant
Product: [WebTools] Dali JPA Tools Reporter: Allan Zhang <zhang>
Component: GeneralAssignee: dali.general-inbox <dali.general-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: karenfbutzke, theivend
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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;-)