Hi,
I am using the non-default timezone UserType described in
http://www.hibernate.org/100.html.
My question: in nullSafeSet(...) and nullSafeGet(...) methods is it thread-safe for UTCCalendar.getCalendar() to return the same Calendar instance in every call or should I return a new Calendar instance? When using only one calendar instance, is it ok to manually synchronize on it in nullSafeSet(...) and nullSafeGet(...)? As in:
Code:
synchronized(UTCCalendar.getCalendar()){
st.setDate(index, (java.sql.Date)value, UTCCalendar.getCalendar());
}
Thank you very much for your help.
Thanks,
Jair Jr