From 79205434800d2a6c5f430a0949a908d08fd42ed5 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 14 Feb 2017 15:16:17 +0100 Subject: [PATCH] Add note regarding the detection of `spring.jpa.database` Closes gh-8253 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index d56e491432a..ee5cf295c7c 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1882,6 +1882,11 @@ The dialect to use is also automatically detected based on the current `DataSour you can set `spring.jpa.database` yourself if you want to be explicit and bypass that check on startup. +NOTE: Specifying a `database` leads to the configuration of a well-defined Hibernate +dialect. Several databases have more than one `Dialect` and this may not suit your need. +In that case, you can either set `spring.jpa.database` to `default` to let Hibernate figure +things out or set the dialect using the `spring.jpa.database-platform` property. + The most common options to set are: [indent=0,subs="verbatim,quotes,attributes"]