Hi, thx for the response. A quick follow-up...
I'm dealing with a Table that has three columns that map to String, int, long. The value is mutually exclusive meaning only one is populated per row.
We deal with huge amounts of data, and I'd like to avoid the overhead of objects where primitives will do. But I'll take the overhead of an object if I can only grab the non-null value...for example:
If I define an interface like this:
Code:
public interface SimpleAttribute<T> {
T getValue( );
void setValue(T value);
}
...and during the fetch, only get the value that is non-null (one of Integer, Long, String) and store it as parameter T?
I'm not sure how to configure Hibernate (admitted newbie) to deal with an interface like that, and also how to have it only fetch the non-null value from the columns. Any pointers on how to do this?
Thank you,
davis