Hi Team,
I am using hibernate with MySQl(Mysql-5.0.5). I have a table with a column type BLOB. Corresponding bean in
java has byte[] for this column. I am able to write blob sucessfully but
not able to read the blob in byte[].
My Table(
Person) looks like this
------------------------------------------ Field *************************Type ------------------------------------------ PERSON_ID *************************bigint(20)
age *************************int(11)
firstname *************************varchar(255)
lastname *************************varchar(255)
BYTE_DATE *************************blob EVENT_DATE*************************datetime
TITLE *************************varchar(255)
EVENT_ID *************************bigint(20)
------------------------------------------ Here are my configuration files.
Hibernate.cfg.xml Bean Configuration File is
My Bean
Person is
Here is the code which I am trying to run is
Please let me know, if any other details are required...
Any help would be greatly appreciated!!!
Thanks
[ May 20, 2008: Message edited by: Ankur Sharma ]