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

Bug 349533

Summary: Generate Entities from Tables, cannot remove cascading of association
Product: [WebTools] Dali JPA Tools Reporter: Leo Breuss <eclipse.org>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 2.3.3Flags: neil.hauge: review+
Target Milestone: 3.0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed Patch neil.hauge: iplog+

Description Leo Breuss CLA 2011-06-16 04:41:20 EDT
Build Identifier: Helios SR2 20110218-0911

The Dali JPA Tools wizard "Generate Entities from Tables" has a bug in the "Table Association" page. For an association, the "Select cascade" checkbox selection is not correctly reflected in the cascade field of the association. Moreover, if I deselect all checkboxes, the previously configured cascade type is still there in the cascade field of the association.

Setup: Eclipse Helios, 20110218-0911, WTP updated recently.
Dali Java Persistence Tools
  Version: 2.3.4.v201104192310-7N7UF77FD3wTgcVbmmf0cT
  Build id: 20100915173744
Dali Java Persistence Tools - EclipseLink Support
  Version: 2.3.4.v201104192310-7778BkBgJ9EA9VGcDFBA
  Build id: 20100915173744


Reproducible: Always

Steps to Reproduce:
1. Go to the Dali JPA Tools wizard "Generate Entities from Tables"
2. Select any association. Change the cascade type. In the "Select Cascade" dialog, set Cascading to e.g. persist, click OK.
3. Try to remove that cascade setting by unselecting the checkboxes in the same "Select Cascade" dialog.
Comment 1 Neil Hauge CLA 2011-07-01 16:25:24 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 2 Nan Li CLA 2012-01-20 12:09:18 EST
Created attachment 209840 [details]
Proposed Patch
Comment 3 Neil Hauge CLA 2012-01-24 17:12:57 EST
Patch committed to maint and head for M5.
Comment 4 Jolene Moffitt CLA 2012-02-12 21:06:34 EST
Verified in Build M-3.3.2-20120207225832 

Verified you can remove cascading selection by unchecking the checkbox.   See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.2