This content has been marked as final. Show 2 replies
There is an option for hibernate to output all sql.
insert this to the properties of the persistence-unit you want to log all statements from.
<property name="hibernate.show_sql" value="true"/> <property name="hibernate.format_sql" value="true"/> <property name="hibernate.use_sql_comments" value="true"/>
Of course the last 2 lines arent really necessary.
Regards, Milan Wölke
Thank you very much. Exactly what I needed....