Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to store a string(more than 4 KB) into CLOB data using hibernate

 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Facing a problem in storing the data which of size more than 4000 character(i.e 4 KB)into Oracle CLOB field through hibernate.

Its works fine for less 4000 characters.

Any help how to handle this will be appreciated.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't answer you directly since I don't use Hibernate directly, but I can point you to something that might help. The Spring framework provides a support class for handling CLOBs and BLOBs. I'm using the BLOB support class to store 16kb byte arrays. Since it's open source, you can get the source and check out how they handled this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic