Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325594 - Problems deleting entities that are displayed in a JPA Diagram
Summary: Problems deleting entities that are displayed in a JPA Diagram
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Diagram Editor (show other bugs)
Version: 0.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.5 RC3   Edit
Assignee: Petya Sabeva CLA
QA Contact: Stefan Dimov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-17 09:55 EDT by Karen Butzke CLA
Modified: 2011-01-17 08:25 EST (History)
1 user (show)

See Also:


Attachments
NPE stack trace (2.39 KB, text/plain)
2010-09-17 09:55 EDT, Karen Butzke CLA
no flags Details
patch that checks if resource exists (1.06 KB, patch)
2010-10-04 06:44 EDT, Petya Sabeva CLA
stefan.dimov: iplog+
Details | Diff
fix tests to be compatible with the patch (1.16 KB, patch)
2010-10-04 06:45 EDT, Petya Sabeva CLA
stefan.dimov: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2010-09-17 09:55:41 EDT
Created attachment 179115 [details]
NPE stack trace

I have attempted to simplify this problem as much as possible, was a little difficult to isolate. I am testing with 0.5RC2

1. Create a 1.0 JPA project
2. Open the JPA diagram editor
3. Create a Java Entity in the JPA diagram (Entity1)
4. Create another Java Entity in the JPA diagram (Entity2)
5. Create a 1-1 uni-directional relationship from Entity1 to Entity2
6. Save
7. Go to the Project Explorer and delete the org.persistence package

You'll notice that Entity2 remains in the JPA Diagram. There are 2 errors in the error log:

1.Resource '/Foo/src/org/persistence/Entity2.java' does not exist. - no stack trace
2.Stack trace attached
Comment 1 Petya Sabeva CLA 2010-10-04 06:43:30 EDT
I can reproduce only the error messega that "resource does not exist" and I apply a patch only for that issue. Everything works fine by me.
Comment 2 Petya Sabeva CLA 2010-10-04 06:44:43 EDT
Created attachment 180147 [details]
patch that checks if resource exists
Comment 3 Petya Sabeva CLA 2010-10-04 06:45:12 EDT
Created attachment 180148 [details]
fix tests to be compatible with the patch
Comment 4 Stefan Dimov CLA 2010-10-11 11:20:37 EDT
The patch is submitted ...