Appfuse 1.9.4/DB2/JSF

I try to map a java property to db type blob

/**
 * @return Returns the content.
 * uploaded file's content: 
 * word, excel, pdf, image, txt and html file  content
 * @hibernate.property column="content" type="binary" not-null="true"
 */
 public byte[] getContent() {
   return content;
 }

As a result, I got a table with the field content defined as
varchar(255).
If I change binary to "blob", I got a table with content defined as blob
255.

If I change "binary" to "BINARY", I got an error not knowing what that
is.

Spring forum as a discusssion entry
(http://forum.springframework.org/showthread.php?t=40457&highlight=blob&;
page=2) stating "blob" did not work, "binary" is the correct type to
use. 

Does anyone have an experience on this?  Would you please share with me
your thoughts and ideas and experience to make it work with DB2?  Thank
you.

QD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to