mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.1.x'
This commit is contained in:
+3
-3
@@ -237,7 +237,7 @@ This takes precedence over anything that is applied by the auto-configuration.
|
||||
[[howto.data-access.configure-hibernate-naming-strategy]]
|
||||
== Configure Hibernate Naming Strategy
|
||||
|
||||
Hibernate uses {url-hibernate-userguide}#naming[two different naming strategies] to map names from the object model to the corresponding database names.
|
||||
Hibernate uses {url-hibernate-docs}#naming[two different naming strategies] to map names from the object model to the corresponding database names.
|
||||
The fully qualified class name of the physical and the implicit strategy implementations can be configured by setting the `spring.jpa.hibernate.naming.physical-strategy` and `spring.jpa.hibernate.naming.implicit-strategy` properties, respectively.
|
||||
Alternatively, if javadoc:org.hibernate.boot.model.naming.ImplicitNamingStrategy[] or javadoc:org.hibernate.boot.model.naming.PhysicalNamingStrategy[] beans are available in the application context, Hibernate will be automatically configured to use them.
|
||||
|
||||
@@ -271,7 +271,7 @@ See {code-spring-boot-hibernate-src}/autoconfigure/HibernateJpaAutoConfiguration
|
||||
[[howto.data-access.configure-hibernate-second-level-caching]]
|
||||
== Configure Hibernate Second-Level Caching
|
||||
|
||||
Hibernate {url-hibernate-userguide}#caching[second-level cache] can be configured for a range of cache providers.
|
||||
Hibernate {url-hibernate-docs}#caching[second-level cache] can be configured for a range of cache providers.
|
||||
Rather than configuring Hibernate to lookup the cache provider again, it is better to provide the one that is available in the context whenever possible.
|
||||
|
||||
To do this with JCache, first make sure that `org.hibernate.orm:hibernate-jcache` is available on the classpath.
|
||||
@@ -281,7 +281,7 @@ include-code::MyHibernateSecondLevelCacheConfiguration[]
|
||||
|
||||
This customizer will configure Hibernate to use the same javadoc:org.springframework.cache.CacheManager[] as the one that the application uses.
|
||||
It is also possible to use separate javadoc:org.springframework.cache.CacheManager[] instances.
|
||||
For details, see {url-hibernate-userguide}#caching-provider-jcache[the Hibernate user guide].
|
||||
For details, see {url-hibernate-docs}#caching-provider-jcache[the Hibernate user guide].
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user