Hi,
I have to keep a large number of long numbers associated with specified type of object (some my class has to have a references to those numbers). It's about a few thousands per object. In code it would be keep as Set<Long> (but that could be changed).
My idea was to make a long wrapper (MyLong):
Code:
class MyLong {
private long value;
...
}
and later:
Code:
class Keeper {
private Set<MyLong> longs;
...
}
but maybe a set/array of longs could be mapped directly using Hibernate or it can be done more efficiently?
Thanks for help
Marcin