Community
Participate
Working Groups
Build Identifier: 20100917-0705 The value set to the convert attribute is lost once switching from current focus area to the other. This happens with both Java and orm convert. -With Java convert, the value gets removed, but @Convert annotation is left. -With orm convert, convert element gets completely removed from the mapping file. Reproducible: Always Steps to Reproduce: 1. Selecting an convertible mapping in the editor 2. In JPA detail view, select Type -> Converted and choose a name from the "Converter name" dropdown list 3. Selecting any other focus area in the editor, e.g. the entity name Note: 1) This problem doesn't exist if selecting any one of the reserved converters from the "Converter name" dropdown list 2) This problem doesn't exist if directly typing the name of an converter in the "Converter name" field now matter whether the name is already in the dropdown list or not.
This is pretty bad. Needs to be fixed in 3.0 release.
Created attachment 189757 [details] patch 1. The changes for AbstractComboModelAdapter are the fixes of this bug. 2. The changes for EclipseLinkConvertComposite are the fixes of the default value issues. 3. The changes for GeneratedValueComposite are made as what Brain suggested. On one hand, it gets the value from the aspect adapter instead of the pane; on the other hand, the new implementation invokes getUniqueGeneratorNames() to filter out the duplicate names instead of using the intenal filtering mechanism of SortedListValueModelAdapter which makes the logic more intuitive.
This has been fixed in M6.
Verified in Build I-3.3.0-20110331154142 Verified that when you change focus from the convert value it does not disappear. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_M6