vodka>
Quote:
The problem is how to get sql statements after these methods are executed
smolka>
Quote:
Hibernate API Methods dont give you access to the statement objects the whole point is to abstract above these.
I think vodka just wants to see the hibernate generated sql statements (not the Statement object as in JDBC). If i got it right then all you need to do is put
Code:
log4j.logger.org.hibernate=INFO
log4j.logger.org.hibernate.type=DEBUG
in your log4j.properties and
Code:
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="use_sql_comments">true</property>
in your hibernate.cfg.xml
Hope it helps :)
cheers