【发布时间】:2013-04-03 11:20:13
【问题描述】:
我的 hibernate.cfg.xml 中有这段代码
<property name="hbm2ddl.auto">create</property>
这意味着每次我运行应用程序时,hibernate 都会删除所有表并创建新表。
我如何指定它应该只删除一些特定的表,比如“汽车”? hibernate 有这种配置选项吗?
【问题讨论】:
标签: java mysql xml hibernate configuration