Bug 272188 - [Refactoring] Remove Entity - Does not update orm.xml
Summary: [Refactoring] Remove Entity - Does not update orm.xml
Status: CLOSED DUPLICATE of bug 209489
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-14 13:36 EDT by Jolene Moffitt CLA
Modified: 2010-07-30 12:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jolene Moffitt CLA 2009-04-14 13:36:35 EDT
Build ID: I20090313-0100
Dali Integration Build - I-3.1-20090409190505

Steps To Reproduce:
1.Create a JPA Project using Generic Platform and check orm.xml checkbox.
2.R-Click on project and select New>Entity
3.Check the Add to entity mapping in XML checkbox, Add a field or two and create entity
4. Notice the newly created entity appears in orm.xml and some errors appear since the new entity has no Id mapped yet.
5. R-click on the newly created Entity and select Delete
6. Notice the errors still appear and the orm.xml file still contains the deleted Entity and Save is not enabled.
7. You have to manually remove the Entity from the orm.xml and Save then the errors will be removed.
Comment 1 Neil Hauge CLA 2009-04-14 17:56:51 EDT
From step 5, where are you deleting the entity from.  I assumed at first you were referring to the Structure view, but that seems to work for me.

Comment 2 Jolene Moffitt CLA 2009-04-14 20:18:21 EDT
If I Select the Entity within the package in the Project Explorer View and R-Click and select Delete it is not removed from the orm.xml.  I do however have the orm.xml open for editing if that makes a difference.
Comment 3 Neil Hauge CLA 2009-04-16 16:42:00 EDT
I led you astray when you first asked me about this.  In this case, we do not expect the entity to be removed from the orm.xml.  This would be a refactoring, which is something we can look at adding support for in the future.
Comment 4 Neil Hauge CLA 2010-07-30 12:49:03 EDT
This functionality is now covered under bug 209489.

*** This bug has been marked as a duplicate of bug 209489 ***