-->
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: date type and oracle ...
PostPosted: Thu Oct 14, 2004 10:56 am 
Beginner
Beginner

Joined: Mon Jul 19, 2004 4:55 am
Posts: 34
Hibernate version:2.1.4

Mapping documents:
Code:
<property name="dateArrivee" type="date"/>   



Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:oracle 8.1.7

The generated SQL (show_sql=true):
Code:
create table toto(
   dateArrivee date
)


Debug level Hibernate log excerpt:


hello,
I have a problem with hibernate configuration and date type. I want to store date with format "dd/MM/yyyy HH:mm".
my java date is well formed (ex: 14/10/2004 14:15)but it seems that hibernate can't store hours and minutes.
in database, I have 10/14/2004 0:0:0 !!!!????
have i the right hibernate type in hbm file?
is there any manipulation on java date to do?

also, if I insert a well formed date in database, I retrieve it in bad format ie. 14/10/2004 00:00:00.0 ???!!
help me please !!!!!!!!
thanks for quickly answer.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 14, 2004 1:29 pm 
Senior
Senior

Joined: Sun Jan 04, 2004 2:46 pm
Posts: 147
Code:
<property name="dateArrivee" type="timestamp"/>


date IS date only as java.sql.Date is.


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.