I am looking at the Hibernate hbm2ddl.auto configuration property and its possible values:
validateupdatecreatecreate-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.autoAutomatically validates or exports schema DDL to the database when the
SessionFactoryis created. Withcreate-drop, the database schema will be dropped when theSessionFactoryis closed explicitly.e.g.
validate|update|create|create-drop
I found very useful explanations in these Stack Overflow questions:
- Hibernate hbm2ddl.auto possible values and what they do?
- Schema is not dropped on hbmddl.auto = create.drop
But still nothing in the official documentation.