From c88b1e8cc9eee49be3b175f8c1f3b42d0b602f25 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Tue, 10 Dec 2024 21:29:02 +0100 Subject: [PATCH] links to settings from doc (oops!) --- .../src/main/asciidoc/introduction/Tuning.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/documentation/src/main/asciidoc/introduction/Tuning.adoc b/documentation/src/main/asciidoc/introduction/Tuning.adoc index b01a9b919fb7..6f21130c769e 100644 --- a/documentation/src/main/asciidoc/introduction/Tuning.adoc +++ b/documentation/src/main/asciidoc/introduction/Tuning.adoc @@ -566,7 +566,7 @@ But in case it helps, we often test Hibernate with the following configuration, |=== | Configuration property name | Property value -| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `jcache` +| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `jcache` | `hibernate.javax.cache.uri` | `/ehcache.xml` |=== @@ -603,7 +603,7 @@ Alternatively, to use Infinispan as the cache implementation, the following sett |=== | Configuration property name | Property value -| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `infinispan` +| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#CACHE_REGION_FACTORY[`hibernate.cache.region.factory_class`] | `infinispan` | `hibernate.cache.infinispan.cfg` a| Path to infinispan configuration file, for example: [%breakable,cols="~,35"] !=== @@ -624,7 +624,7 @@ Finally, there's a way to globally disable the second-level cache: |=== | Configuration property name | Property value -| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#USE_SECOND_LEVEL_CACHE[`hibernate.cache.use_second_level_cache`] | `true` to enable caching, or `false` to disable it +| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#USE_SECOND_LEVEL_CACHE[`hibernate.cache.use_second_level_cache`] | `true` to enable caching, or `false` to disable it |=== When `hibernate.cache.region.factory_class` is set, this property defaults to `true`. @@ -650,7 +650,7 @@ The query cache must be enabled explicitly: |=== | Configuration property name | Property value -| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings#USE_QUERY_CACHE[`hibernate.cache.use_query_cache`] | `true` to enable the query cache +| link:{doc-javadoc-url}org/hibernate/cfg/CacheSettings.html#USE_QUERY_CACHE[`hibernate.cache.use_query_cache`] | `true` to enable the query cache |=== To cache the results of a query, call `SelectionQuery.setCacheable(true)`: @@ -969,7 +969,7 @@ We may ask Hibernate to collect statistics about its activity by setting this co |=== | Configuration property name | Property value -| link:{doc-javadoc-url}org/hibernate/cfg/StatisticsSettings#GENERATE_STATISTICS[`hibernate.generate_statistics`] | `true` to enable collection of statistics +| link:{doc-javadoc-url}org/hibernate/cfg/StatisticsSettings.html#GENERATE_STATISTICS[`hibernate.generate_statistics`] | `true` to enable collection of statistics |=== The statistics are exposed by the link:{doc-javadoc-url}org/hibernate/stat/Statistics.html[`Statistics`] object: @@ -1003,8 +1003,8 @@ Hibernate offers two configuration properties that can make it easier to identif |=== | Configuration property name | Purpose | Property value -| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings#LOG_SLOW_QUERY[`hibernate.log_slow_query`] | Log slow queries at the `INFO` level | The minimum execution time, in milliseconds, which characterizes a "slow" query -| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings#USE_SQL_COMMENTS[`hibernate.use_sql_comments`] | Prepend comments to the executed SQL | `true` or `false` +| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings.html#LOG_SLOW_QUERY[`hibernate.log_slow_query`] | Log slow queries at the `INFO` level | The minimum execution time, in milliseconds, which characterizes a "slow" query +| link:{doc-javadoc-url}org/hibernate/cfg/JdbcSettings.html#USE_SQL_COMMENTS[`hibernate.use_sql_comments`] | Prepend comments to the executed SQL | `true` or `false` |=== When `hibernate.use_sql_comments` is enabled, the text of the HQL query is prepended as a comment to the generated SQL, which usually makes it easy to find the HQL in the Java code.