validate update create create-drop
這幾個參數的作用主要用于:自動建立 更新 驗證資料庫表結構
如果不是此方面的需求取none
validate:加載hibernate時,驗證建立資料庫表結構
create:每次加載hibernate,重新建立資料庫表結構,這就是導緻資料庫表結構丢失的原因
create-drop:加載hibernate時建立,退出是删除表結構
update:加載hibernate自動更新資料庫結構
validate update create create-drop
這幾個參數的作用主要用于:自動建立 更新 驗證資料庫表結構
如果不是此方面的需求取none
validate:加載hibernate時,驗證建立資料庫表結構
create:每次加載hibernate,重新建立資料庫表結構,這就是導緻資料庫表結構丢失的原因
create-drop:加載hibernate時建立,退出是删除表結構
update:加載hibernate自動更新資料庫結構