I have setup ehcache as hibernate query cache. But when I execute the
same query multiple times, it still go and query the database (from
the hibernate sql out, it still executes mysql query). Can you please
tell me what am i missing?
Here is why I did in my hibernate.cfg.xml file:
And then, here is my query:
Query query = session
"from Country as country where country.language= :language and
// uncomment this still does not work.
List result = query.list();
Can you please tell my how to get ehcache to work as hibernate query cache.
I think I have followed what the documentation said.