Can anyone at least tell me if query caching works for HQL or not. From the Hibernate forum discussions it should work.
I am doing everything from the query caching perspective as listed in this post
http://acupof.blogspot.com/2008/01/background-hibernate-comes-with-three.html
It seems the entries are getting into the cache but for subsequent invocations I am not able to see the fetch from the cache instead it ends up in database roundtrip.
log:
checking cached query results in region: org.hibernate.cache.StandardQueryCache
net.sf.ehcache.Cache[661]: org.hibernate.cache.StandardQueryCache cache - Miss
org.hibernate.cache.StandardQueryCache[107]: query results were not found in cache
Please let me know your thoughts.