Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data-jpa-hibernate-cache/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ spring.jpa.properties.hibernate.cache.use_second_level_cache=true
These properties configure Hibernate to:

* Use JCache as the caching implementation (`hibernate.cache.region.factory_class=jcache`)
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.javax.cache.uri=/ehcache.xml`)
* Use EhCache as the JCache provider (`hibernate.javax.cache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.cache.jcache.uri=/ehcache.xml`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the property name is now correct, the description for hibernate.cache.jcache.uri is slightly redundant. It mentions the configuration file path /ehcache.xml, which is also shown as the property's value. For better conciseness and consistency with other items in the list, consider rephrasing this line.

* Specify the EhCache configuration file URI (`hibernate.cache.jcache.uri=/ehcache.xml`)

* Use EhCache as the JCache provider (`hibernate.cache.jcache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
* Enable the second-level cache (`hibernate.cache.use_second_level_cache=true`)

=== EhCache Configuration
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/data-jpa-hibernate-cache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ spring.jpa.properties.hibernate.cache.use_second_level_cache=true
These properties configure Hibernate to:

* Use JCache as the caching implementation (`hibernate.cache.region.factory_class=jcache`)
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.javax.cache.uri=/ehcache.xml`)
* Use EhCache as the JCache provider (`hibernate.javax.cache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
* Use the EhCache configuration file located at `/ehcache.xml` (`hibernate.cache.jcache.uri=/ehcache.xml`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the property name is now correct, the description for hibernate.cache.jcache.uri is slightly redundant. It mentions the configuration file path /ehcache.xml, which is also shown as the property's value. For better conciseness and consistency with other items in the list, consider rephrasing this line.

* Specify the EhCache configuration file URI (`hibernate.cache.jcache.uri=/ehcache.xml`)

* Use EhCache as the JCache provider (`hibernate.cache.jcache.provider=org.ehcache.jsr107.EhcacheCachingProvider`)
* Enable the second-level cache (`hibernate.cache.use_second_level_cache=true`)

=== EhCache Configuration
Expand Down
Loading