Community
Participate
Working Groups
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.
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.
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.
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.
This functionality is now covered under bug 209489. *** This bug has been marked as a duplicate of bug 209489 ***