Hibernate: how to enable show sql

By , last updated September 5, 2011

To see all the sqls that your application do during execution, insert the following property in your test xml property file:

<bean id="sessionFactory"
		<property name="hibernateProperties">
				<prop key="hibernate.show_sql">true</prop>
		<property name="dataSource" ref="dbDataSource" />


Be the first to comment.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>