From 3c761cfc966b8c944eff63773e6ebfd0dd9f573a Mon Sep 17 00:00:00 2001 From: Matthias Stock Date: Thu, 31 Jan 2019 23:34:58 +0100 Subject: [PATCH 1/2] Polish 'Database Initialization' section See gh-15859 --- .../spring-boot-docs/src/main/asciidoc/howto.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc index 733c4d4d980..380d6405a29 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -2186,6 +2186,7 @@ reused to provide similar features to what the auto-configuration does with a si == Database Initialization An SQL database can be initialized in different ways depending on what your stack is. Of course, you can also do it manually, provided the database is a separate process. +It is recommended to follow a single schema generation approach. @@ -2195,7 +2196,8 @@ JPA has features for DDL generation, and these can be set up to run on startup a database. This is controlled through two external properties: * `spring.jpa.generate-ddl` (boolean) switches the feature on and off and is vendor -independent. +independent. An appropriate configuration is passed to the available JPA implementation +(e.g. Hibernate). * `spring.jpa.hibernate.ddl-auto` (enum) is a Hibernate feature that controls the behavior in a more fine-grained way. This feature is described in more detail later in this guide. From a1fbfbe6beaac6cb55f35912528a4297106d31a6 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 12 Feb 2019 17:17:29 +0100 Subject: [PATCH 2/2] Polish contribution Closes gh-15859 --- .../spring-boot-docs/src/main/asciidoc/howto.adoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc index 380d6405a29..1a18d5450c1 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -2186,7 +2186,7 @@ reused to provide similar features to what the auto-configuration does with a si == Database Initialization An SQL database can be initialized in different ways depending on what your stack is. Of course, you can also do it manually, provided the database is a separate process. -It is recommended to follow a single schema generation approach. +It is recommended to use a single mechanism for schema generation. @@ -2196,8 +2196,7 @@ JPA has features for DDL generation, and these can be set up to run on startup a database. This is controlled through two external properties: * `spring.jpa.generate-ddl` (boolean) switches the feature on and off and is vendor -independent. An appropriate configuration is passed to the available JPA implementation -(e.g. Hibernate). +independent. * `spring.jpa.hibernate.ddl-auto` (enum) is a Hibernate feature that controls the behavior in a more fine-grained way. This feature is described in more detail later in this guide.