I need help with using HibernateUTC$TimestampType.
I have a java application that has time in a particular field in the GMT timezone. When it saves that time in the Oracle DB, the timezone becomes CSD. That is because my weblogic server/JVM time is CSD.
So I came upon HibernateUTC$TimestampType.
My hibernate mapping file is as follows
<property
name="outagStrtDt"
type="com.sprint.spmp.hibernate.HibernateUTC$TimestampType"
column="OUTAG_STRT_TMST"
/>
My POJO java file sets and gets as follows:
public class xxxYYY{
public TimestampType getOutagStrtDt() {
return this.outagStrtDt;
}
public void setOutagStrtDt(TimestampType outagStrtDt) {
this.outagStrtDt = outagStrtDt;
}
Now in my client program, I have got the gmtTime as a java.util.Date.
How do i set this gmtTime to my object. ie
xxxYYY.setOutagStrtDt(?????)... how do i convert the gmtTime to the HibernateUTC$TimestampType.
I would greatly appreciate any help...
thanks so much
Leena
|