Has anyone heard of this error before:
I have a Java 5 application that uses Hibernate 3.3.2 to access Oracle Database 10g, the JDBC driver is the lightweight Oracle driver version 10.2.0.4.0 (the latest version, I think). Access to the database occurs during a transaction, which is managed using spring AOP tools. There is one database table mapped to a single Java object, mapping is done using annotations. There are two attributes in this object that are CLOBs in the database. They are annotated according to JPA with "Lob" and are Java strings. Everthing works fine if both attributes have no values with more than 4000 characters: after fixing, the values are included in the database, that is, attribute A contains the value of attribute B and vice versa.
I'm not kidding!
The Eclipse debugger tells me that the Java object has the correct values before closing the transaction (I did not debug spring transaction processing). This error does not occur if both Clobs are annotated with the Hibernate annotation "Type (type =" clob ")" (in this case they should be of type java.sql.Clob, not String, of course).
source
share