根据配置自动生成表
<property name=“hbm2ddl.auto” >create</property>
showSql打印sql语句
<property name="show_sql">true</property>
格式化sql语句
<property name="format_sql">true</property>
想要托管的话,要把bean的equals()和hashCode()方法重载
根据配置自动生成表
<property name=“hbm2ddl.auto” >create</property>
showSql打印sql语句
<property name="show_sql">true</property>
格式化sql语句
<property name="format_sql">true</property>
想要托管的话,要把bean的equals()和hashCode()方法重载