What are the possible values of the Hibernate hbm2ddl.auto configuration and what do they do

問題:

I really want to know more about the update, export and the values that could be given to hibernate.hbm2ddl.auto我真的很想知道更多關於更新、導出和可以給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:這些是可能發生在 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?在每種情況下,最佳解決方案是什麼?


解決方案:

參考一: https://en.stackoom.com/question/1pys
參考二: https://stackoom.com/question/1pys
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章