How I can configure StatementInspector in Hibernate?
<p><a href="https://docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/Interceptor.html" rel="nofollow">https://docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/Interceptor.html</a>
 says that onPrepareStatement(String sql) is Deprecated.  Supply a StatementInspector instead, if you wish to inspect and alter SQL statements.</p>

<p>But I am not clear how I can configure StatementInspector in Hibernate at application level (i don't want to set it at each hibernate session level).</p>