I am looking at the Hibernate hbm2ddl.auto configuration property and its possible values:
validateupdatecreatecreate-dropWhat 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:
But still nothing in the official documentation.
For hbm2ddl.auto property the list of possible options is:
The link you provided is already the official documentation. So, there's nothing more official and comprehensive as-of today.
So I guess the answer to your question is two-fold:
I know this isn't the perfect answer you dreamt about, but this is actually all you have today.
But the good news is that the project is open-source, so you have all you need to help improve it :-).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With