Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] @BasicCollection non storing Integer type


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.



Back to the top