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

Bug 311635

Summary: Allow user to pick java classes when creating an orm.xml mapping file
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 2.3   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard: EaseOfUse

Description Karen Butzke CLA 2010-05-04 17:27:26 EDT
Our mapping file creation wizard could be enhanced to allow the user to select entities/mapped superclasses/embeddables when creating the file.  Adding them 1 at a time after creating the file is slow.  The Entity-Mappings action for adding entities could also be extended to allow multiple to be added at 1 time
Comment 1 Neil Hauge CLA 2010-05-06 09:32:55 EDT
This would be a great enhancement.
Comment 2 Karen Butzke CLA 2010-06-02 14:50:57 EDT
Another option is to have a right-click menu option on a java class to add it to an orm.xml file.  This would allow you to pick multiple java classes and then choose an existing orm.xml file or create a new one (either orm.xml, eclipselink-orm.xml or other). This might need to go along with the Make Entity bug 182849.  If java class is already annotated do we want to push all that information into the orm.xml? Probably an option for the user.

Drag and Drop is another possibility.
Comment 3 Neil Hauge CLA 2011-03-07 10:35:39 EST
Some of the need here has been alleviated by the functionality in Make Persistent dialog, although only for classes that are not yet entities.  That said, I think the most pressing use case here is for the user who is working only with orm mapping files, and as a result, the Make Persistent dialog should be a big help.  Deferring this for now.
Comment 4 Neil Hauge CLA 2011-07-01 16:25:51 EDT
Moving JPA specific bugs to new JPA component in bugzilla.