Hi,
How do you create the session factory the session factory?
You can set the same property programmatically using the Configuration class:
Code:
import org.hibernate.cfg.Environment
...
new Configuration()
.setProperty( AvailableSettings.SHOW_SQL, "true" ).
.buildSessionFactory()
alternatively, you can set the following log category in your log configuration:
Code:
org.hibernate.SQL
As explained in the documentation: http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch03.html#configuration-logging
Cheers,
Davide