HHH-13124 - The CachingRegionFactory resolution algorithm has changed

This commit is contained in:
Vlad Mihalcea 2018-11-27 13:38:46 +02:00 committed by Guillaume Smet
parent 4900832cc2
commit 39d9f84920
2 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,8 @@ Detailed information is provided later in this chapter.
Besides specific provider configuration, there are a number of configurations options on the Hibernate side of the integration that control various caching behaviors:
`hibernate.cache.use_second_level_cache`::
Enable or disable second level caching overall. The default is true, although the default region factory is `NoCachingRegionFactory`.
Enable or disable second level caching overall. By default, if the currently configured
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/cache/spi/RegionFactory.html[`RegionFactory`] is not the `NoCachingRegionFactory`, then the second-level cache is going to be enabled. Otherwise, the second-level cache is disabled.
`hibernate.cache.use_query_cache`::
Enable or disable second level caching of query results. The default is false.
`hibernate.cache.query_cache_factory`::

View File

@ -1067,7 +1067,10 @@ public interface AvailableSettings extends org.hibernate.jpa.AvailableSettings {
String CACHE_PROVIDER_CONFIG = "hibernate.cache.provider_configuration_file_resource_path";
/**
* Enable the second-level cache (enabled by default)
* Enable the second-level cache.
* <p>
* By default, if the currently configured {@link org.hibernate.cache.spi.RegionFactory} is not the {@link org.hibernate.cache.internal.NoCachingRegionFactory},
* then the second-level cache is going to be enabled. Otherwise, the second-level cache is disabled.
*/
String USE_SECOND_LEVEL_CACHE = "hibernate.cache.use_second_level_cache";