I really want to know more about the update, export and the values that could be given to hibernate.hbm2ddl.auto
I need to know when to use the update and when not? And what is the alternative?
These are changes that could happen over DB:
- new tables
- new columns in old tables
- columns deleted
- data type of a column changed
- a type of a column changed its attributes
- tables dropped
- values of a column changed
In each case what is the best solution?
Best Answer
From the community documentation:
So the list of possible options are,
These options seem intended to be developers tools and not to facilitate any production level databases, you may want to have a look at the following question; Hibernate: hbm2ddl.auto=update in production?