posted 18 years ago
"INFO-org.hibernate.stat.StatisticsImpl-StatisticsImpl.java:488 - query cache puts: 10"
But wait, that is the query cache.
So, which cache provider are you using and did you define your cache region in that providers configuration file?
Not only do you put a cache usage in the mapping, but you also have to tell the provider what cache region to create
Ah, you use OSCacheProvider, not sure their configuration file name, but like for ehcache it is ehcache.xml.
I will also ask why you are using the query-cache. It is useful for data that never changes, because if the results change often, what you will have in the query-cache will be stale pretty quickly.
Mark