Announcement Announcement Module
Collapse
No announcement yet.
Store Blob field to databse Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X