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
|
|