[jboss-user] [JBoss Seam] - Re: Tutorial: Handling images in your Seam application

damianharvey do-not-reply at jboss.com
Thu Oct 25 06:18:48 EDT 2007


I had an error "Wrong column type....expected blob" when I used the mysql mediumblob datatype. This post http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046291#4046291 has a solution that works for me. Eg:

  |     @Lob
  |     @Basic(fetch=FetchType.LAZY)
  |     @Column(name = "data", nullable = false, columnDefinition="mediumblob")
  |     private byte[] data;
  | 
Cheers,

Damian.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098758#4098758

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098758



More information about the jboss-user mailing list