[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-users] @BasicCollection non storing Integer type
|
- From: astarte <g.turek@xxxxxxxxxxxxx>
- Date: Tue, 30 Sep 2008 19:35:22 -0700 (PDT)
- Delivered-to: eclipselink-users@eclipse.org
My code:
@BasicCollection(valueColumn = @Column(name = "ALARM"))
@CollectionTable(name = "SETTINGS_ALARMS", primaryKeyJoinColumns =
{@PrimaryKeyJoinColumn(name = "SETTINGS_ID", referencedColumnName = "ID")})
private Set<Integer> alarms = new HashSet<Integer>();
public Set<Integer> getAlarms()
{
return Collections.unmodifiableSet(alarms);
}
public void addAlarm(int alarm)
{
alarms.add(alarm);
}
However the values of alarms are stored as strings. Has anyone experienced
this?
Thank you
gaby
--
View this message in context: http://www.nabble.com/%40BasicCollection-non-storing-Integer-type-tp19753488p19753488.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.