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

Bug 348964

Summary: new JPA entity wizard exception if orm.xml or persistence.xml is read only
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
stack trace none

Description Karen Butzke CLA 2011-06-09 16:45:04 EDT
Created attachment 197742 [details]
stack trace

1. Start with a JPA project with an orm.xml file set to read-only.
2. Create a new JPA entity and select 'Add to entity mappings in XML'
The orm.xml file will be modified but not saved. The attached exception is logged in the error log

The same thing happens with the persistence.xml if the project is set to classes must be listed in the persistence.xml and you don't choose to add the class to the orm.xml
Comment 1 Neil Hauge CLA 2011-07-01 16:24:03 EDT
Moving JPA specific bugs to new JPA component in bugzilla.