Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316768 - Synchronize Class List with read-only persistence.xml should prompt user
Summary: Synchronize Class List with read-only persistence.xml should prompt user
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nan Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-14 10:43 EDT by Karen Butzke CLA
Modified: 2013-09-06 16:13 EDT (History)
1 user (show)

See Also:


Attachments

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