-->
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: How can I insert special-formated date into Oracle database?
PostPosted: Fri Feb 20, 2004 2:06 am 
Newbie

Joined: Fri Feb 20, 2004 1:59 am
Posts: 1
Have Hibernate provided this function just like to_date('2002-1-1 12:23:19','YYYY-MM-DD HH24:MI:SS') in Oracle?

Give me some solutions please,thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 7:10 am 
Beginner
Beginner

Joined: Thu Jan 01, 2004 11:36 am
Posts: 23
Location: Belgium
I don't see your problem; if you are using the to_date function for update and inserts, your class should implement a Timestamp property and no conversion is necessary (the conversion of a string to the type is already done by your Timestamp property ).

If you are using it to compare dates use < and > operators in your hql.

Jan


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.