Skip to content

Commit 6a986b2

Browse files
authored
Fix incorrect properties in Hibernate second level article (#255)
1 parent 51e3c1c commit 6a986b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

data-jpa-hibernate-cache/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ spring.jpa.properties.hibernate.cache.use_second_level_cache=true
5353
These properties configure Hibernate to:
5454

5555
* Use JCache as the caching implementation (`hibernate.cache.region.factory_class=jcache`)
56-
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.javax.cache.uri=/ehcache.xml`)
57-
* Use EhCache as the JCache provider (`hibernate.javax.cache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
56+
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.cache.jcache.uri=/ehcache.xml`)
57+
* Use EhCache as the JCache provider (`hibernate.cache.jcache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
5858
* Enable the second-level cache (`hibernate.cache.use_second_level_cache=true`)
5959

6060
=== EhCache Configuration

docs/modules/ROOT/pages/data-jpa-hibernate-cache.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ spring.jpa.properties.hibernate.cache.use_second_level_cache=true
5151
These properties configure Hibernate to:
5252

5353
* Use JCache as the caching implementation (`hibernate.cache.region.factory_class=jcache`)
54-
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.javax.cache.uri=/ehcache.xml`)
55-
* Use EhCache as the JCache provider (`hibernate.javax.cache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
54+
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.cache.jcache.uri=/ehcache.xml`)
55+
* Use EhCache as the JCache provider (`hibernate.cache.jcache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
5656
* Enable the second-level cache (`hibernate.cache.use_second_level_cache=true`)
5757

5858
=== EhCache Configuration

0 commit comments

Comments
 (0)