-->
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: ClobImpl parameter error
PostPosted: Thu Mar 16, 2006 7:06 am 
Newbie

Joined: Thu Mar 16, 2006 6:48 am
Posts: 1
Dear all,

I'm trying to use a Clob with Hibernate. I found an example saying to use the
Hibernate.createClob method in order to create a Clob.
I've found that the version of the method with 2 parameters wants an int value as number of characters in the stream.
Looking at the source code I've found that this int parameter is used to set the length of the Clob object (org.hibernate.lob.ClobImpl class).
I can't understand why I've to pass an int parameter when the java.sql.Clob interface
(implemented by the org.hibernate.lob.ClobImpl class) has a method length that returns a long variable.
Probably there is a reason but I can't understand it.
Can you help me?

Thanks

Michele


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.