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

Bug 363306

Summary: [EclipseLink] sql-script generation deletes the generated files
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 3.0.1Flags: neil.hauge: review+
Target Milestone: 3.0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed patch against 3.0 maintenance none

Description Karen Butzke CLA 2011-11-09 08:36:36 EST
Using an EclipseLink JPA project, right-click and choose 'JPA Tools' -> 'Generate Tables from Entities'. Choose 'Sql-script' or 'Both' as the Generation output mode. After the generation is completed refresh the project. You *should* see the files createDDL.sql and dropDDL.sql, but they are not there.
Comment 1 Karen Butzke CLA 2011-11-09 08:44:37 EST
Created attachment 206685 [details]
proposed patch against 3.0 maintenance

I have checked this into HEAD and tested by exporting this to the org.eclipse.jpt.jpa.eclipselink.core.ddlgen*.jar in my target workspace.

The createDDL.sql and dropDDL.sql files are only generated when 'sql-script' or 'both'  is chosen as the generation output mode. They should not be deleted whether in debug mode or not. They are not generated if the output mode is 'database'
Comment 2 Karen Butzke CLA 2012-01-06 15:29:02 EST
fixed for 3.0.2
Comment 3 Jolene Moffitt CLA 2012-01-19 08:17:42 EST
Verified in Build M-3.3.2-20120113193226 

Verified when you Generate Tables from Entities... and select Sql-script or Both and Refresh the createDDL.sql and dropDDL.sql files appear in the project. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.2