Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
.hibernate4.LocalSessionFac toryBean doen't have "p:lobHandler-ref" property [SPR-9022] #13661
After merge for spring 3.1 and Hibernate 4. I can't do the work with Clob.
I have hbm file:
In the package hibernate4.support.ClobStringType is absent.
And second one in the configuration i was have:
Now the org.springframework.orm.hibernate4.LocalSessionFac toryBean doen't have "p:lobHandler-ref" property.
What is the path to fix this?
Affects: 3.1 GA
Juergen Hoeller commented
We generally rely on the native Hibernate 4 ways of doing things more than before (with Hibernate 3).
So for LOB access, we recommend native Hibernate types (e.g. org.hibernate.type.MaterializedClobType) instead of the former user types that came with Spring's Hibernate 3 support. With Hibernate 4 and modern JDBC drivers (e.g. Oracle 10g or even a JDBC 4 driver), you should not need Spring's LobHandler mechanism at all anymore.
In short, please try to replace your Spring user types with native Hibernate CLOB types. See the Hibernate documentation for details on their support for CLOB access.