-
Notifications
You must be signed in to change notification settings - Fork 2
Fix incorrect properties in Hibernate second level article #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the property name is now correct, the description for
|
||
* 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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.