hibernate對數(shù)據(jù)庫的建立和刪除
<!--?啟動時刪數(shù)據(jù)庫中的表,然后創(chuàng)建,退出時不刪除數(shù)據(jù)表
<property?name="hibernate.hbm2ddl.auto">create</property>-->
<!--?啟動時刪數(shù)據(jù)庫中的表,然后創(chuàng)建,退出時自動刪除所有表
<property?name="hibernate.hbm2ddl.auto">create-drop</property>-->
<!--?自動修改,如果表結(jié)構(gòu)與實體類不一致,那么就修改表使它們一致,數(shù)據(jù)會保留
<property?name="hibernate.hbm2ddl.auto">update</property>-->
<!--?自動校驗,如果表結(jié)構(gòu)與實體類不一致,那么不做任何操作,報錯
<property?name="hibernate.hbm2ddl.auto">validate</property>-->