[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] @BasicMap generated columns
|
Looks like a bug. Try specifying the keyColumn with a columnDefinition. For
example,
@BasicMap(keyColumn=@Column(columnDefinition="VARCHAR")
Cheers,
Guy
----- Original Message -----
From: "otismo" <peter@xxxxxxxxx>
To: <eclipselink-users@xxxxxxxxxxx>
Sent: Friday, April 03, 2009 1:25 PM
Subject: [eclipselink-users] @BasicMap generated columns
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
--
View this message in context:
http://www.nabble.com/%40BasicMap-generated-columns-tp22873004p22873004.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users