I would like to initialize class members of a persisted object as soon as Hibernate loads the object from the database.
How can I do this ?
More specifically: In the following persisted object, I would like to initialize date
's timezone
class Schedule {
Calendar date
TimeZone tz;
}
I cant do this in the constructor because hibernate will use setters to initialize the object. I cant do this in the setters because I cannot rely on the order of initialization.