From 034362b6e525da9f4319710db1d9eb1972eecde2 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Wed, 1 Oct 2014 15:35:24 +0100 Subject: [PATCH] Explicit example for spring.jpa.properties.hibernate.* Fixes gh-1636 --- .../src/main/asciidoc/spring-boot-features.adoc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 91396fa1843..40c1a8d9651 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -1463,7 +1463,16 @@ following to your `application.properties`. NOTE: Hibernate's own internal property name for this (if you happen to remember it better) is `hibernate.hbm2ddl.auto`. You can set it, along with other Hibernate native properties, using `spring.jpa.properties.*` (the prefix is stripped before adding them -to the entity manager). By default the DDL execution (or validation) is deferred until +to the entity manager). Example: + +[indent=0] +---- + spring.jpa.properties.hibernate.globally_quoted_identifiers=true +---- + +passes `hibernate.globally_quoted_identifiers` to the Hibernate entity manager. + +By default the DDL execution (or validation) is deferred until the `ApplicationContext` has started. There is also a `spring.jpa.generate-ddl` flag, but it is not used if Hibernate autoconfig is active because the `ddl-auto` settings are more fine grained.