I would like to initialize the members of the persistent object class as soon as Hibernate loads the object from the database.
How can i do this?
In particular: in the next stored object, I would like to initialize the datetime zone
class Schedule {
Calendar date
TimeZone tz;
}
I cannot do this in the constructor because hibernate will use setters to initialize the object. I cannot do this in setters because I cannot rely on the initialization order.
source
share