-->
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.  [ 2 posts ] 
Author Message
 Post subject: DateTimeUserType implementation
PostPosted: Tue Jul 26, 2005 7:01 am 
Beginner
Beginner

Joined: Mon Jun 20, 2005 3:14 pm
Posts: 33
Hi,

Does anybody has a implementation of DateTimeUserType class? I would like to convert java.sql.Timestamp into a concrete java.util.Date...

(I'm using Hibernate 3.0.5)

Thanks,

Andre


Top
 Profile  
 
 Post subject: Re: DateTimeUserType implementation
PostPosted: Thu Jul 28, 2005 9:56 am 
Beginner
Beginner

Joined: Mon Apr 12, 2004 6:33 pm
Posts: 35
ad-rocha wrote:
I would like to convert java.sql.Timestamp into a concrete java.util.Date...


Why don't you just let Hibernate do the conversion? I always map timstamp columns to a java.util.Date.


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

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.