Hello,
We are using Spring with Hibernate. We have a certain requirement to customize a sql query before sending it to the database. A StatementInspector is a good start, however we would like to invoke it only for sql generated by a particular dao package. I know I can configure it globally and in the inspect method use filters to filter certain keywords. This approach is a bit complicated because of the complexity of our db. I was wondering if there’s a simple way to just invoke it for a certain package. We don’t want to create a new non spring managed session to handle this as the root service is transactional. This will lead to multiple sessions per transaction leading to perf issues.