Hello, I'm trying to work query.setCacheable(true), but eclipse gives me an error:
"The method setCacheable(boolean) is undefined for the type Query
Add cast to method receiver".
I'm looking at hibernate documentation cache but do not know what I need, in all places where I look seems to work. I have in my xml:
Code:
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider"/>
<property name="hibernate.cache.use_query_cache" value="true"/>
and ehcache.xml file. Can anyone help me out? I want to cache these queries.
Greetings