title: Java Hibernate Logging: Before or after sql eexectuion
body: <p>We have in the logging something like</p>
  <pre><code>09:53:02 server-1 java[5447]: 2022-03-10 09:53:02.262  INFO 5447 --- [io-18081-exec-6] a.w.w.service.item.LibItemService        : logging start
  09:53:07 server-1 java[5447]: 2022-03-10 09:53:07.477 DEBUG 5447 --- [io-18081-exec-6] org.hibernate.SQL                        : select nextval ('lib_id_seq')
  </code></pre>
  <p>Logging is done via</p>
  <pre><code>logging:
    level:
      org:
        hibernate:
          SQL: TRACE
  </code></pre>
  <p>We are now discussing if the information about the SQL statement is <strong>before</strong> it is executed or <strong>after</strong>. The difference is: Whom to blame for the lost 5.2 seconds? The database OR the code which is done before?</p>