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)

However the values of alarms are stored as strings. Has anyone experienced
Thank you
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top