How to log the response time for insert and update query in hibernate
<p>I am using the hibernate version 5.0.1.I have enabled hibernate.generate.statistics=true and log4j.logger.org.hibernate.stat=debug.The statistics is generated for select query alone.I need the statistics for insert and update query as well.</p>

<p>As of now we are logging the time difference between the before and after execution time for insert and update queries.</p>

<p>Please help me to get clarified on this.</p>