Hello Manish, please tell me the version of oracle do you use is 9i?
How do you mapping Typedefs.xml?
Please.
Esperanza
Thanks you
manishbel wrote:
Why are you still applying the custom solution?
Hibernate (3.0?) provides org.hibernate.type.StringClobType that you can use for String to Clob and vice-a-versa conversion.
Add following entry to Typedefs.xml
<typedef class="org.hibernate.type.StringClobType" name="stringClobType"/>
and define this custom type in your hibernate mapping files for any string property that you want to be stored as CLOB.
I ran a Unit Test and tried to store more than 4000 characters for the property defined as stringClobType and it worked just fine.
Manish