-->
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.  [ 2 posts ] 
Author Message
 Post subject: image datatype mssql how to map
PostPosted: Fri Aug 06, 2004 5:03 am 
Newbie

Joined: Tue Jul 27, 2004 1:33 pm
Posts: 18
Location: South Africa
Hi all,

I am having problems mapping the mssql datatype image to a java type in the hbm files. The middlegen app generated a mapping to java.io.InputStream but when the hibernate layer runs the configuration file it complains about the mapping saying that

"Caused by: net.sf.hibernate.MappingException: Could not interpret type: java.io.InputStream"

I am using the ms jdbc drivers for mssql. Any help appreciated.

thanks


Top
 Profile  
 
 Post subject: Re: image datatype mssql how to map
PostPosted: Fri Aug 06, 2004 1:48 pm 
Newbie

Joined: Tue Jun 29, 2004 10:14 am
Posts: 11
mxc4 wrote:
Hi all,

I am having problems mapping the mssql datatype image to a java type in the hbm files. The middlegen app generated a mapping to java.io.InputStream but when the hibernate layer runs the configuration file it complains about the mapping saying that

"Caused by: net.sf.hibernate.MappingException: Could not interpret type: java.io.InputStream"

I am using the ms jdbc drivers for mssql. Any help appreciated.

thanks


The MS JDBC drivers do not support BLOB and CLOB types. You need to use an alternate driver. I am in the process of switching from the MS driver to jTDS for this reason. jTDS does allow you to load image objects.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.