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

Bug 339418

Summary: Incorrectly enabled converter widgets in virtual orm.xml attribute
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Pascal Filion <pascal.filion>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge, paul.fullbright
Version: 3.0   
Target Milestone: 3.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix for bug none

Description Karen Butzke CLA 2011-03-09 14:51:37 EST
In java I have a custom converter set and the entity is overriden in orm.xml. If you select the implied attribute in the orm.xml and look at the JPA details view you'll notice that the 'Converted' radio button is selected and greyed out, but the 'Converter name:' combo box and 'Define Converter' radio buttons are enabled. If you use these enabled widgets then the java source gets modified.

    @Convert("sex")
    private Gender gender;
Comment 1 Pascal Filion CLA 2011-05-17 10:05:14 EDT
Created attachment 195860 [details]
Fix for bug

The check for the content type was always done using the content type for orm.xml. The fix is to ask the subclass for the content type. JavaEclipseLinkPersistentAttribute will return the proper content type and the pane will be enabled/disabled correctly.
Comment 2 Paul Fullbright CLA 2011-05-24 15:12:36 EDT
This should be fixed with the fix for bug 346535
Comment 3 Paul Fullbright CLA 2011-05-24 20:29:51 EDT
fixed along with bug 346535 in rc3
Comment 4 Jolene Moffitt CLA 2011-08-10 12:37:13 EDT
Verified in Build I-3.4.0-20110805150738 

Verified converter widget shows correctly in orm.xml.  See the link to view
test steps for verification. http://wiki.eclipse.org/Dali_3.0.1