-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Invalid text is stored which is > 4000 length in clob fie
PostPosted: Tue Feb 26, 2008 3:18 pm 
Newbie

Joined: Thu May 03, 2007 6:24 pm
Posts: 14
If I try to persist some text with < 4000 char length in nclob column then no issues
But I try to persist >4000, invalid chars(like inverted ??) are persisted in DB instead of actual text. I'm using oracle 9i with 10g driver along with spring+hibernate.

following are the hibernate settings:
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle9Dialect
</prop>
<!--
&lt;prop key=&quot;hibernate.transaction.factory_class&quot;&gt;org.hibernate.transaction.JTATransactionFactory&lt;/prop&gt;
&lt;prop key=&quot;hibernate.transaction.manager_lookup&quot;&gt;org.hibernate.transaction.WebspherExtendedJTATransactionLookup&lt;/prop&gt;
&lt;prop key=&quot;hibernate.transaction.flush_before_completion&quot;&gt;true&lt;/prop&gt;
&lt;prop key=&quot;hibernate.transaction.auto_close_session&quot;&gt;true&lt;/prop&gt;
-->
<prop key="hibernate.connection.SetBigStringTryClob">true</prop>
<prop key="hibernate.connection.autocommit">false</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.connection.characterEncoding">UTF-8</prop>
<prop key="hibernate.connection.useUnicode">true</prop>

</props>
</property>

I've mapped clob db field to 'text' type in hbm file
Please let me know how I can solve this issue.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.