• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic