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

Bug 357133

Summary: [EclipseLink] MapKeyConvert support
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JPAAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: karenfbutzke, neil.hauge
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: EclipseLink
Bug Depends on:    
Bug Blocks: 300089    

Description Nan Li CLA 2011-09-08 14:18:20 EDT
Build Identifier: M-3.3.1-20110810234736

When a map keyed with a basic type is used with collection mappings (ElementCollect, OneToMany, and ManyToMany), we should be able to specify a named converter with @MapKeyConvert annotation or map-key-convert element for the corresponding mapped attribute key column, and should also be able to define a named converter on the mapped attribute and use it with @MapKeyConvert annotation or map-key-convert element. This leads to possible changes of our models as following:

1. Support multiple converter definitions on an attribute mapping
2. Decouple convert (@Convert/@MapKeyConvert) with converter definitions. Currently we cannot define a converter without enabling EclipseLink convert.

http://www.eclipse.org/eclipselink/api/2.0/org/eclipse/persistence/annotations/MapKeyConvert.html

Reproducible: Always
Comment 1 Neil Hauge CLA 2011-09-26 14:52:03 EDT
*** Bug 354055 has been marked as a duplicate of this bug. ***