From 3ecf512ab32e3d8e22d154bf13124c781d0f3642 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 13 Mar 2015 17:30:05 +0100 Subject: [PATCH] Fix documentation Add `create` as a valid values for `spring.jpa.hibernate.ddl-auto` Fixes gh-2641 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 9d621a09e3..745705dc23 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1520,13 +1520,13 @@ database. This is controlled through two external properties: [[howto-initialize-a-database-using-hibernate]] === Initialize a database using Hibernate You can set `spring.jpa.hibernate.ddl-auto` explicitly and the standard Hibernate property -values are `none`, `validate`, `update`, `create-drop`. Spring Boot chooses a default -value for you based on whether it thinks your database is embedded (default `create-drop`) -or not (default `none`). An embedded database is detected by looking at the `Connection` -type: `hsqldb`, `h2` and `derby` are embedded, the rest are not. Be careful when switching -from in-memory to a '`real`' database that you don't make assumptions about the existence of -the tables and data in the new platform. You either have to set `ddl-auto` explicitly, or -use one of the other mechanisms to initialize the database. +values are `none`, `validate`, `update`, `create`, `create-drop`. Spring Boot chooses a +default value for you based on whether it thinks your database is embedded (default +`create-drop`) or not (default `none`). An embedded database is detected by looking at the +`Connection` type: `hsqldb`, `h2` and `derby` are embedded, the rest are not. Be careful +when switching from in-memory to a '`real`' database that you don't make assumptions about +the existence of the tables and data in the new platform. You either have to set `ddl-auto` +explicitly, or use one of the other mechanisms to initialize the database. In addition, a file named `import.sql` in the root of the classpath will be executed on startup. This can be useful for demos and for testing if you are careful, but probably