-->
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 issue in SchemaExportTask with Oracle9Dialect
PostPosted: Tue Oct 19, 2004 12:48 am 
Newbie

Joined: Tue Oct 19, 2004 12:19 am
Posts: 1
Hibernate version: 2.1

Name and version of the database you are using: Oracle 10.1.0


When using SchemaExportTask, property type "timestamp" is interpreted as date(7). Due to this interpretation milliseconds values are "zeroed" in my db. However If I modify schema-export.sql before running it by hand changing date(7) to timestamp(9) everything works just fine.
I've looked into Oracle9Dialect class and found following line: registerColumnType( Types.TIMESTAMP, "date" );
I would replace it with following line: registerColumnType( Types.TIMESTAMP, "timestamp(9)" );

Should I modify the source or is there a better way to solve this problem?


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.