-
Oct 30th, 2009, 03:38 AM
#1
Store Blob field to databse
Hello friend, i am using Spring hibernate
this is my jsp field
<form:textarea path="EMP_MAN_MID_ASSES" disabled="disabled" rows="5" cols="70" cssClass="textbox" />
i want to store it into database as blob field
this is my POJO entity bean definition
@Lob
@Column(name="EMP_GOAL_QD1")
String EMP_GOAL_QD1;
public byte[] getEMP_GOAL_QD1() {
return EMP_GOAL_QD1.getBytes();
}
public void setEMP_GOAL_QD1(String eMPGOALQD1) {
EMP_GOAL_QD1 = eMPGOALQD1;
}
and i am using hibernate template save method to save it
i am usind DB2 database and in database table this field is BLOB
i am not abe to save it...
plz help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules