Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data type mapping issue

 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have a problem when I retrieve a data from mySql.
I create table with - filename char (40) primary key, filedata longblob.
This is my test uploading code to store some data into database :



It's ok. When I check db upload is success.
But When I try to retrieve data get an exception. This is code for data retrieving :




And I get an exception when I try this. probably some incrrect data mapping, so I'll appreciate if some one refer me at problem solution. Thanks!

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the stack trace?
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, my mistake. I find a bug, a stupid one in the column declaration ;) it is - filedata - , and I was selecting - filedat->e<-
. dumb misspelling brought to me much trouble and cofusion today
Thanks anyway a lot , on your cooperation...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic