-->
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: Hibernate->Oracle.Timestamp with Timezone (again)
PostPosted: Sun Apr 17, 2005 6:19 pm 
Newbie

Joined: Sun Apr 17, 2005 6:08 pm
Posts: 1
Hibernate version: 2.1.6
Oracle 9.1

Hello, I need to save a type that maps to a table where one of the columns is using an Oracle Timezone with Timestamp type so my question is for the above setup, what should the .hbm file declare for this property and what should the user type have for the Java type.

My latest attempt was

<property
name="timestamp"
type="java.util.Calendar"
column="TIMESTAMP"
/>

And working with a Calendar in Java which results in...

java.sql.BatchUpdateException: ORA-01401: inserted value too large for column

...when saving the type.
The code is translating an xs:datTime to this column, but I have that under control, and am having a problem with the Hibernate mapping and JDBC acceptance of whatever Hibernate is doing under the hood.

This is a standard Oracle type and so someone must have the working combination for this.

Thanks in advance.


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.