Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363306 - [EclipseLink] sql-script generation deletes the generated files
Summary: [EclipseLink] sql-script generation deletes the generated files
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0.2   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 08:36 EST by Karen Butzke CLA
Modified: 2012-01-19 08:17 EST (History)
2 users (show)

See Also:
neil.hauge: review+


Attachments
proposed patch against 3.0 maintenance (3.08 KB, patch)
2011-11-09 08:44 EST, Karen Butzke CLA
no flags Details | Diff

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