Is there a way to find out what queries are executed with hibernate?
I would like to write a performance test to ensure only a specific query and amount are run.
Update: Just a clarification, i would like to programatically find out how many queries are run, not just via visual-manual inspection, so it would easily testable.