Eine Möglichkeit ist der Logger:
Code:
log4j.logger.org.hibernate=debug
log4j.logger.org.hibernate.type=debug
Dann erscheint etwas wie:
Code:
DEBUG - insert into IFB.users (emailAddress, dVal, iVal, lastLogon, DAT_ULTIMO, SL_ULTIMO, dateTime, knzCallPut, LogonId) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into IFB.users (emailAddress, dVal, iVal, lastLogon, DAT_ULTIMO, SL_ULTIMO, dateTime, knzCallPut, LogonId) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
DEBUG - preparing statement
DEBUG - Dehydrating entity: [de.ifbfag.base.db.User#ifb1234]
DEBUG - binding 'g.schroeder@fdfls.s.dsd' to parameter: 1
DEBUG - binding '1.23' to parameter: 2
DEBUG - binding '456' to parameter: 3
DEBUG - binding '31.03.2006' to parameter: 4
DEBUG - binding '30 Juni 2002' to parameter: 5
DEBUG - binding '1' to parameter: 6
DEBUG - binding '31.03.2006 16:30:34' to parameter: 7
DEBUG - binding 'Normal' to parameter: 8
DEBUG - binding 'ifb1234' to parameter: 9