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

Bug 316768

Summary: Synchronize Class List with read-only persistence.xml should prompt user
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: 2.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Karen Butzke CLA 2010-06-14 10:43:05 EDT
If you try to perform the 'Synchronize Class List' action on a read-only persistence.xml we make the changes and then are unable to save the file. An exception goes to the error log that the file is read-only.  We should instead prompt the user and ask if they want to make it writable. If they choose not to, we should not make any changes to the persistence.xml
Comment 1 Karen Butzke CLA 2010-06-14 10:46:53 EDT
Same problem exists when editing java files and mapping files from the JPA Structure and Details views.  We allow the user to make changes when we should prompt them just like making changes in the editor does.
Comment 2 Neil Hauge CLA 2011-07-01 16:26:07 EDT
Moving JPA specific bugs to new JPA component in bugzilla.