在hibernate Annotation中
private byte[] content
注解
@Lob
@Basic(fetch = FetchType
@Column(name =
public byte[] getContent() {
return ntent;
}
public void setContent(byte[] content) {
ntent = content;
}
CLOB類型
private String remark
注解
@Lob
@Basic(fetch = FetchType
@Column(name=
public String getRemark() {
return this
}
public void setRemark(String recvdocRemark) {
this
}
按照以上的設置實體類的注解就搞定了
From:http://tw.wingwit.com/Article/program/Java/ky/201311/27967.html