I'm following a tutorial using second-level cache of Hibernate. The hibernate version is hibernate-core-4.3.10.Final.jar
.But when I configure it in hibernate.cfg.xml
with properties hibernate.cache.provider_class
. The value should be org.hibernate.cache.EhCacheProvider
according to the tutorial. But in my case, I can't find this class. I checked the jar file and didn't find this class in it.
Does anyone know where it's placed? Is it changed because of the version?
When I searched this issue online, I found that there's other ways configuring the second-level cache of Hibernate. It will be grateful if you can explain this as well.
Thanks in advance.