I am configuring my hibernate project to use a 2nd-level cache provider, so that I can take advantage of query caching.
I added a dependency to ehcache:
The EhCache docs say that from Hibernate 3.3 onward you should use:
net.sf.ehcache.hibernate.EhCacheRegionFactory
(or net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory)
net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory