Hi all
When Data member of an entity is String and I use the @Lob annotation, the mapping to the DB column is CLOB
But when I change Data member to StringBuffer, the mapping of the column is created as BLOB
What am I doing wrong?
What is the correct way to map String / InputStream to a large CLOB (0.5MB)
Thank you
Sharon
this will create CLOB column in the DB
Code:
@Lob
@Column(name = "FILE_CONTENT")
public String getFile() {
return file;
}
this will create BLOB column in the DB
Code:
@Lob
@Column(name = "FILE_CONTENT")
public StringBuffer getFile() {
return file;
}
Thank you
Sharon