-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Need help with HibernateUTC$TimestampType
PostPosted: Fri Jun 06, 2008 4:37 pm 
Newbie

Joined: Fri Jun 06, 2008 3:44 pm
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.