how to measure performance in hibernate? I want to know that how much time hibernate takes to execute a query?
JProfiler 7.1 has a JPA/Hibernate probe:
http://www.ej-technologies.com/products/jprofiler/whatsnew71.html
Here's a screen cast that shows how it works:
http://blog.ej-technologies.com/2012/01/profiling-jpahibernate.html
The hot spots view looks like this:
Disclaimer: My company develops JProfiler