天天看點

jpa.hibernate.ddl-auto配置屬性說明

jpa.hibernate.ddl-auto配置屬性說明

none: Disable DDl handling (禁用ddl,不做任何操作)

create: Create the schema and destroy previous data (建立架構并銷毀先前的資料)-建表,有資料清空表

create-drop: Create and then destroy the schema at the end of the session (在會話結束時建立然後銷毀架構)–程式結束清空表

update: Update the schema if necessary (必要時更新架構 )–隻更新表結構,不更新資料

validate: Validate the schema, make no changes to the database (驗證架構,不對資料庫進行任何更改)–驗證錯誤會報錯