|
From: Gavin K. <ga...@ap...> - 2002-10-20 10:49:37
|
> >Use of java.sql.Clob class is non-useful, since it provides no way to > >update the data. > > > > In JDBC 3.0, which is in JDK 1.4, Clob has setAsciiStream, > setCharacterStream, setString and truncate methods to update data. Is > it reasonable to require that people use JDBC 3.0 if they want full > support for CLOB's? If we do this, we'd also have to provide an > implementation of java.sql.Clob. Ah. Cool. I wasn't aware of that. > What do you think about adding a hibernate.use_clobs property to decide > between the two? If true, then Clobs are used. Otherwise, use char[] > instead. Nah, it would be better to provide two different ClobTypes with different names, if necessary. Properties are best for specifying behaviour thats transparent to appplication code. |