hbm2ddl.auto 属性 create、create-drop、validation、update选项解释
1、先来看看hibernate官方给出的解释
选项 | 解释 |
---|---|
create | Database dropping will be generated followed by database creation. |
create-drop | Drop the schema and recreate it on SessionFactory startup. Additionally, drop the schema on SessionFactory shutdown. |
validate | Validate the database schema |
update | Update the database schema |
翻译一下就是
选项 | 解释 |
---|