-->
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: Accessing Oracle's 'INTERVAL DAY TO SECOND' data type
PostPosted: Tue Oct 30, 2007 9:15 pm 
Newbie

Joined: Tue Oct 30, 2007 8:54 pm
Posts: 1
I posted same topic in the sun forum:
http://forum.java.sun.com/thread.jspa?threadID=5226526

I was trying to access a column with data type 'INTERVAL DAY TO SECOND' in Oracle by doing this:

Code:
<property name="sampleTime" type="oracle.sql.INTERVALDS">
          <column name="acct_life_time" sql-type="interval_year_to_month" />
</property>


But I got this result:

INFO SerializableType:178 - could not read column value from result set: acct3_7_; could not deserialize
Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize
Caused by: org.hibernate.type.SerializationException: could not deserialize


I tried extending oracle.sql.INTERVALDS and implementing Serializable but I still get the same error.

I'm now thinking of implementing UserType but I don't know the right approach to using custom types.

Any help? Ideas?

Thanks a lot!


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.