I am looking at the Hibernate hbm2ddl.auto
configuration property and its possible values:
validate
update
create
create-drop
What do all these values do?
The Hibernate Reference Documentation only talks briefly about create-drop
, but doesn't say anything about the other values:
hibernate.hbm2ddl.auto
Automatically validates or exports schema DDL to the database when the
SessionFactory
is created. Withcreate-drop
, the database schema will be dropped when theSessionFactory
is closed explicitly.e.g.
validate
|update
|create
|create-drop
I found very useful explanations in these Stack Overflow questions:
But still nothing in the official documentation.
For hbm2ddl.auto
property the list of possible options is: