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

Bug 345293

Summary: Add JPA entity - Create new mapping file (orm.xml) cannot continue
Product: [WebTools] Dali JPA Tools Reporter: Jolene Moffitt <jolene.moffitt>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: karenfbutzke, neil.hauge
Version: 3.0Flags: neil.hauge: review+
Target Milestone: 3.0.1   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard: fix_ready
Attachments:
Description Flags
proposed patch against head none

Description Jolene Moffitt CLA 2011-05-10 12:18:45 EDT
Create New > JPA Project using all default values
Select New > JPA Entity
Check the Add to entity mappings in XML checkbox
Click on Browse button
Click on New button
Leave the default location and file name (orm.xml)
Click on Finish (Notice it appears in Choose mapping XML dialog)
Click on OK button
Notice the Next button is not enabled however if I uncheck and re-check the checkbox for Add to entity mappings in XML the buttons become enabled.
Comment 1 Karen Butzke CLA 2011-06-09 08:28:42 EDT
Created attachment 197689 [details]
proposed patch against head

This patch fixes the original issue. It also fixes the case where you delete the text for the mapping file location and no validation error is given, you can finish the wizard and then you get an exception.
Comment 2 Karen Butzke CLA 2011-06-24 08:00:21 EDT
checked in to HEAD for 3.0.1
Comment 3 Jolene Moffitt CLA 2011-08-03 13:48:14 EDT
Verified in Build I-3.4.0-20110731180834

Verified you can continue after you create a new mapping file when creating a new JPA entity.  See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.1