Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339418 - Incorrectly enabled converter widgets in virtual orm.xml attribute
Summary: Incorrectly enabled converter widgets in virtual orm.xml attribute
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Pascal Filion CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 14:51 EST by Karen Butzke CLA
Modified: 2011-08-10 12:37 EDT (History)
3 users (show)

See Also:


Attachments
Fix for bug (7.66 KB, patch)
2011-05-17 10:05 EDT, Pascal Filion 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-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