Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348964 - new JPA entity wizard exception if orm.xml or persistence.xml is read only
Summary: new JPA entity wizard exception if orm.xml or persistence.xml is read only
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nan Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 16:45 EDT by Karen Butzke CLA
Modified: 2013-09-06 16:50 EDT (History)
1 user (show)

See Also:


Attachments
stack trace (1.39 KB, text/plain)
2011-06-09 16:45 EDT, Karen Butzke CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.