sql_show = true
this property in hibernate prints the sql that is run, but i want to see the begin transaction
and complete transaction
statements as well so that i can track the transaction duration and see the query run in which transaction.
googling reveals that
log4j.logger.org.hibernate.SQL = DEBUG, defaultAppender
log4j.logger.org.hibernate.type = DEBUG, defaultAppender
log4j.logger.org.hibernate.transaction=DEBUG, defaultAppender
should show you the transaction level data as well. But it doesnt.
Investigating more i looked into hibernate code and found a class name
org.hibernate.ejb.TransactionImpl
this class has the begin and complete method but this method does not log any thing.
Any advice how to see the transaction level info in hibernate ?
I am using hibernate 2.2