permaculture playing cards*
The moose likes Object Relational Mapping and the fly likes CLOB in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "CLOB in Hibernate" Watch "CLOB in Hibernate" New topic
Author

CLOB in Hibernate

Rahul Babbar
Ranch Hand

Joined: Jun 28, 2008
Posts: 210
Hello,

I had a column defined as Varchar2(4000) in Oracle database and defined as the following in the Value Object.


I needed to change the column to allow more than 4000 chars, and since the maximum limit of varchar is 4000, i needed to change it to CLOB.
So, i changed the data type of the VALUE column in the database as CLOB.

Surprisingly, although i did not make any changes in the value object(like defining the column as CLOB etc), it has started working.
I am not sure whether it is the expected behavior and everything's good or i am in for a surprise when suddenly it will fail.

Any comments are appreciated.

Regards

Rahul Babbar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CLOB in Hibernate
 
Similar Threads
JVM Out Of Memory...How to increase Heap Size??
Storing large String in CLOB
Reading CLOB object from Oracle
Converting a String to Clob for insert into DB
use of CLOB,help me.