-->
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: timestamp and oracle
PostPosted: Thu Jun 19, 2008 7:26 am 
Newbie

Joined: Thu Sep 22, 2005 4:01 am
Posts: 3
Location: Lyon (France)
Hi,

Hibernate version: 3.2

Name and version of the database you are using: oracle express 10g

Hi,

I'm trying to migrate my postgresql database to oracle express 10 on rhel 5. All seems ok. My application use tomcat and hibernate to access database. I have a problem between java timestamp and oracle timestamp.

When I set hibernate in verbose mode, I can see the sql string generated. Here is an exemple:

SQL> select * from etat_materiel where date_<='2008-06-19 11:17:55.433';
select * from etat_materiel where date_<='2008-06-19 11:17:55.433'
*
ERROR at line 1:
ORA-01843: not a valid month



Apparently it's not the good format for sql timestamp, but I can't find where in hibernate I can specify another way of creating this sql string.

Does anybody have been confronted to the same problem and how to solve it ?

Regards.

PS: I use
- tomcat 6
- hibernate 3.2
- oracle express 10 on rhel5


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.