-->
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: longblog not compatible with hibernate?
PostPosted: Mon Sep 13, 2010 2:05 pm 
Newbie

Joined: Mon Sep 13, 2010 1:55 pm
Posts: 4
Hi guys im new to the hibernate world and i am using it to map a table that stores files of all types. i am however recieving a very strange error :

javax.servlet.ServletException: java.lang.ClassCastException: [B cannot be cast to java.sql.Blob

i have mapped my MySql LONGBLOB column has: <property name="fileData" type="blob" .../> and <property name="fileData" type="longblog" .../> but both dont work.

im currently using spring mvc version 3.x the latest version and tomcant 7 if that helps.

thanks


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.