015_showsql_formatsql
会把sql语句打印在console
/hibernate_0100_HelloWorld/src/hibernate.cfg.xml
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
格式化sql,显得更好看些
<property name="format_sql">true</property>
015_showsql_formatsql
会把sql语句打印在console
/hibernate_0100_HelloWorld/src/hibernate.cfg.xml
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
格式化sql,显得更好看些
<property name="format_sql">true</property>