1 Reply Latest reply on Jun 6, 2013 8:40 AM by Adam Warski

    Hibernate blob return null

    Pongsatorn Charoensethamaha Newbie

           Domain .java

      private Blob roomDescription;

       

           public Blob getRoomDescription() {

              return this.roomDescription;

          }

         

          public void setRoomDescription(Blob roomDescription) {

              this.roomDescription = roomDescription;

          }

          

           Domain .hbm.xml

          

           <property name="roomDescription" type="blob">

                  <column name="ROOM_DESCRIPTION" />

           </property>

       

      I use Oracle10g database and when query with sql command on sqldeveloper it seems to work properly that there is information inside this field

      Capture2.JPG

      Capture3.JPG

      However, It returns NULL both with HQL on Netbeans and on the web application.

          Capture4.JPG

       

      How should I fix this problem? Did I forget to configure something?

      Thank you in advance.