-->
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: SQL Timestamp conversion exception
PostPosted: Wed Nov 14, 2007 3:28 am 
Newbie

Joined: Tue Nov 13, 2007 11:34 pm
Posts: 1
Location: Vietname
Hi All!
I did some java code with SQL Server 2005
But i got some problems.

In my database have a column name LAST_MODIFIED with type
TIMESTAMP (binary type).
In JavaBean has a property name lastModified with type java.sql.Timestamp

mapping file i did:
<property
name="lastModified"
column="LAST_MODIFIED"
type="java.sql.Timestamp"
update="false"
insert="false" />
and then run it and get exception:
org.hibernate.util.JDBCExceptionReporter. - The conversion from binary to TIMESTAMP is unsupported.

I try any type of java in mapping file and JavaBean. but i didn't help

how do i solve this problem!
Thanks!

_________________
Don't make your code mess up


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.