[HHH-2519] Schema dropping not documented with hibernate.hbm2ddl.auto=create

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@12933 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Diego Plentz 2007-08-14 14:27:03 +00:00
parent c3f440cf48
commit d40aa403b2
1 changed files with 9 additions and 3 deletions

View File

@ -989,9 +989,15 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect]]></programlisting>
<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> |