Author: d.plentz
Date: 2007-08-14 10:27:03 -0400 (Tue, 14 Aug 2007)
New Revision: 12933
Modified:
core/trunk/documentation/manual/en-US/src/main/docbook/modules/configuration.xml
Log:
[HHH-2519] Schema dropping not documented with hibernate.hbm2ddl.auto=create
Modified:
core/trunk/documentation/manual/en-US/src/main/docbook/modules/configuration.xml
===================================================================
---
core/trunk/documentation/manual/en-US/src/main/docbook/modules/configuration.xml 2007-08-14
13:49:08 UTC (rev 12932)
+++
core/trunk/documentation/manual/en-US/src/main/docbook/modules/configuration.xml 2007-08-14
14:27:03 UTC (rev 12933)
@@ -989,9 +989,15 @@
<entry>
Automatically validate or export schema DDL to the database
when the <literal>SessionFactory</literal> is
created. With
- <literal>create-drop</literal>, the database
schema will be
- dropped when the
<literal>SessionFactory</literal> is closed
- explicitly.
+ <literal>create</literal>, the database schema
will be dropped
+ and re-created when the
<literal>SessionFactory</literal> is
+ created. <literal>create-drop</literal> implies
+ <literal>create</literal>, and will additionally
cause the
+ schema be dropped when the
<literal>SessionFactory</literal>
+ is closed explicitly. With
<literal>update</literal>, the
+ schema will not be dropped, but is updated.
<literal>validate</literal>
+ will check the database for required tables/columns and throw
an
+ Exception if something is missing.
<para>
<emphasis
role="strong">eg.</emphasis>
<literal>validate</literal> |
<literal>update</literal> |
Show replies by date