After i updated hibernate tool to 3.3.0 (from 3.3.0 M2) execution of HQL query failed with Exception :
Code:
org.hibernate.HibernateException: Could not instantiate cache implementation
...
Caused by: org.hibernate.cache.NoCachingEnabledException: Second-level cache is not enabled for usage
[hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]
...
but after enabling cache I got problem with LOBs (which eagerly loaded) :
Code:
java.lang.UnsupportedOperationException: Clobs are not cacheable
at org.hibernate.type.ClobType.disassemble(ClobType.java:84)
...
so how to disable caching or handle blobs with out rewriting my POJOs?