Paul Reiners
Paul Reiners

Reputation: 7894

In using Hibernate 4, what dependency to I need for `org.hibernate.cache.EhCacheProvider`?

In using Hibernate 4, what POM dependeny do I need for org.hibernate.cache.EhCacheProvider so that the lines in the configuration file will work?

            <prop key="hibernate.cache.provider_class">
                org.hibernate.cache.EhCacheProvider
            </prop>

Upvotes: 0

Views: 247

Answers (1)

Travieso
Travieso

Reputation: 437

Hibernate-ehcache contains the provider you're looking for. Add this to your dependency management file or download the library directly.

Maven:

<dependency>
   <groupId>org.hibernate</groupId>  
   <artifactId>hibernate-ehcache</artifactId>
   <version>{hibernate-version-goes-here}</version>
</dependency>

Gradle:

compile "org.hibernate:hibernate-ehcache:{hibernate-version-goes-here}"

Upvotes: 1

Related Questions