wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes How to store a string(more than 4 KB) into CLOB data using hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to store a string(more than 4 KB) into CLOB data using hibernate" Watch "How to store a string(more than 4 KB) into CLOB data using hibernate" New topic
Author

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

james edwin
Ranch Hand

Joined: Nov 22, 2001
Posts: 393
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.


Regards,
James
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to store a string(more than 4 KB) into CLOB data using hibernate