-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate CLOB Persistence
PostPosted: Mon Jun 01, 2015 8:31 am 
Newbie

Joined: Mon Jun 01, 2015 8:04 am
Posts: 2
Hi,
I am using Hibernate 3 and Oracle 10 G. When trying to persist CLOB Object in my application, it is working fine in our environment.
Where as the same code is not working in Client environment. Below is my HBM property and code to set clob type in the application.

Code:

<property column="COMMENTS" name="comments" not-null="false" type="java.sql.Clob" length="10000"/>


persistable.put(key, Hibernate.createClob(value.toString()));



Also the hbm properties configuration
Code:
<property name="hibernate.connection.SetBigStringTryClob">true</property>
<property name="hibernate.jdbc.batch_size">0</property>



Any help in resolving this would be greatly appreciated.


Top
 Profile  
 
 Post subject: Re: Hibernate CLOB Persistence
PostPosted: Tue Jun 02, 2015 8:47 am 
Newbie

Joined: Mon Jun 01, 2015 8:04 am
Posts: 2
The issue got resolved after finding that classes12.jar was not present in Client Jboss Server lib. After adding it , the application worked fine.


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

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.