hibernate.cache.region.factory_class Required in hibernate.cfg.xml

*爱你&永不变心* 提交于 2019-12-03 14:38:29

The exception is quite self-explanatory. You have to set the *hibernate.cache.region.factory_class* property. For instance with ehcache would be adding the following line:

<property name="hibernate.cache.region.factory_class">net.sf.ehcache.hibernate.EhCacheRegionFactory</property>

Had the same issue while using hibernate-memcached 1.3 and spymemcached 2.7 with hibernate 4.3. Had to switch to hibernate4-memcached which provides a RegionFactory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!