This content has been marked as final.
Show 1 reply
-
1. Re: Blob No Such Method Error
elkner Feb 16, 2006 3:17 PM (in response to majohnst)My blobs work wo any problems (and did with the old notation in 4.0.3x) as well. IMHO there is no need to wrap that array into something else:
@Lob @Basic(fetch=FetchType.EAGER, optional=true) @Column(name="image", length=262144) public byte[] getImage() { return image; } public void setImage(byte[] image) { this.image = image; }
Easy to [re]create the image on a gui: new ImageIcon(byte[]).