在Hibernate中如何注释Blob列?到目前为止,我有一堂课,有:
@Column( name = "FILEIMAGE" ) private byte[ ] fileimage ; // public byte[ ] getFileimage ( ) { return this.fileimage ; } public void setFilename ( String filename ) { this.filename = filename ; }
@Lob应该可以解决blob和clob(使用String作为类型)
@Column( name = "FILEIMAGE" ) @Lob(type = LobType.BLOB) private byte[] fileimage;