Skip to content

Commit 3c761cf

Browse files
m7stocksnicoll
authored andcommitted
Polish 'Database Initialization' section
See gh-15859
1 parent d368e9c commit 3c761cf

File tree

1 file changed

+3
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/main/asciidoc

1 file changed

+3
-1
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2186,6 +2186,7 @@ reused to provide similar features to what the auto-configuration does with a si
21862186
== Database Initialization
21872187
An SQL database can be initialized in different ways depending on what your stack is.
21882188
Of course, you can also do it manually, provided the database is a separate process.
2189+
It is recommended to follow a single schema generation approach.
21892190

21902191

21912192

@@ -2195,7 +2196,8 @@ JPA has features for DDL generation, and these can be set up to run on startup a
21952196
database. This is controlled through two external properties:
21962197

21972198
* `spring.jpa.generate-ddl` (boolean) switches the feature on and off and is vendor
2198-
independent.
2199+
independent. An appropriate configuration is passed to the available JPA implementation
2200+
(e.g. Hibernate).
21992201
* `spring.jpa.hibernate.ddl-auto` (enum) is a Hibernate feature that controls the
22002202
behavior in a more fine-grained way. This feature is described in more detail later in
22012203
this guide.

0 commit comments

Comments
 (0)