格式化Hibernate的SQL输出话语

格式化Hibernate的SQL输出语句
在 applicationContent.xml 文件中加入以下程序代码,及可以Console中看到 Hibernate 执行sql 语句.
<props>
  <prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
  </prop>
  <prop key="hibernate.show_sql">true</prop>
  <prop key="hibernate.format_sql">true</prop>
  <prop key="hibernate.use_sql_comments">false</prop>
</props>