I would have to display in my console log, the duration of each Hibernate query. Is it possible ?
Take a look on this article. http://www.basilv.com/psd/blog/2008/hibernate-and-logging
It seems it describes exactly what you need. I hope it is still relevant fore newer versions of Hibernate since hibernate moved to SLF4J. In this case you should perform appropriate configuration of SLF4J instead of Log4j
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With