<property name="hbm2ddl.auto">update</property>
(1). hibernate反向工程
(2).hibernate的自动创建表
1.在hibernate.cfg.xml中增加<propertyname="hbm2ddl.auto">update</property>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="show_sql">true</property>
<!-- hibernate反向工程 -->
<property name="hbm2ddl.auto">update</property>
<property name="