Community
Participate
Working Groups
Build Identifier: I20110427-1300 If including an entity both in a mapping XML and a diagram, the java.lang.ClassCastException will be thrown when trying to open the diagram editor or save a changed diagram or... And the diagram editor cannot be opened at all. The following steps can reproduce the problem: 1. Create an java entity 2. Open the diagram editor and add the java entity created in step 1 to it 3. Create a mapping file and add the java entity created in the step 1 to it 4. Go back to the diagram editor, make some changes to the diagram, and try to save it 5. Close the diagram editor by discard the changes 6. Try to open the diagram editor again The stack trace is attached. Reproducible: Always
Created attachment 194746 [details] CCE Stack Trace
Currently the JPA Diagram Editor supports pure Java entities only. http://wiki.eclipse.org/JPA_Diagram_Editor_Project#Limitations We plan to support xml defined entities too in the future
Lowering the severity since the diagram editor doesn't support xml right now and there are no solid plans for this support.
*** Bug 381435 has been marked as a duplicate of this bug. ***
Was just thinking that this case should probably be more gracefully handled for now. Either don't allow the diagram editor to open, or have some sort of warning message displayed when it is open. At the current time I don't believe it is obvious to the user that there is a problem.
I am changing the severity to enhancement, because manipulating of xml defined persistent types through the JPA diagram editor is a whole new feature, which wasn't supported till now. The code was submitting with the following git commit: https://git.eclipse.org/c/dali/webtools.dali.git/commit/?id=92ed2e9eb64fcb68d009c49df281f861cd18b0b7 There still needs to be added new SWT bot tests for this kind of persistent types.
This commit is in Kepler M6, so might make sense to just mark this as fixed for M6, and then open a new bug for the testing tasks in M7. You may also want to adjust the title to more accurately reflect this feature. No exception should be needed since it is already in M6.
I've opened a new bug for the tests: https://bugs.eclipse.org/bugs/show_bug.cgi?id=403482
I am closing this one.