Skip to content

Commit

Permalink
Schema generation approach notes
Browse files Browse the repository at this point in the history
  • Loading branch information
m7stock committed Jan 31, 2019
1 parent b4e890c commit 7ca7eef
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -2187,6 +2187,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.



Expand All @@ -2196,7 +2197,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.
Expand Down

0 comments on commit 7ca7eef

Please sign in to comment.