-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: blobs and cache
PostPosted: Mon Feb 08, 2010 8:36 am 
Newbie

Joined: Mon Feb 08, 2010 8:27 am
Posts: 1
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.