Bug 271171 - DDL generation for keyColumn's from BasicMap is incorrect.
Summary: DDL generation for keyColumn's from BasicMap is incorrect.
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 14:30 EDT by Guy Pelletier CLA
Modified: 2022-06-09 10:27 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Pelletier CLA 2009-04-03 14:30:45 EDT
From users mailing list:

---------------------

The @BasicMap annotation with eclipselink 1.1 always generates a key column
with the same type as the value column.  Why?  Do I need to change my
annotation?

For example:
@BasicMap
private Map<String, Integer> aMap = ...
generates a key column of type int and a value column of type int.

@BasicMap
private Map<Integer, String> aMap = ...
generates a key column of type varchar and a value column of type varchar.

@BasicMap
private Map<String, Number> aMap = ...
generates a key column of type decimal(10,0) and a value column of type
decimal(10,0).

Thanks for any help,
Peter

-----------------------

Workaround is to specify the columnDefinition on the keyColumn from BasicMap.
Comment 1 Peter Krogh CLA 2009-11-27 13:41:32 EST
This bug fix did not make the cut off for 2.0.0. We are deferring the bugs to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Comment 2 Peter Krogh CLA 2009-11-30 11:37:08 EST
Changing the priority of the bugs that have been recently triaged to future.  Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:27:45 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink