hibernate输出建表sql语句
<!-- Echo all executed SQL to stdout -->
<property name="hibernate.show_sql">true</property>
<property name="format_sql">true</property>
当有这两句话在hibernate.cfg.xml也不可以输出建表sql语句的时候
找到了问题所在,在log4j的日志log4j.properties配置还要加上这句配置
### log just the SQL
log4j.logger.org.hibernate.SQL=debug