A way to intercept entity update done via HQL/Query<> interface

Hello,

Background
We had a few entities which were being hard-deleted, and we have updated them to get soft-deleted instead using an “Active” boolean column, for the delete request, we update the “Active” boolean to false via HQL/Query<> interface’s executeUpdate method.

Problem
The problem is Hibernate Interceptor doesn’t pick the query executions so that we can audit the entity being deleted, as well as few other things related to that entity. What should be the ideal solution for this ?

Thank you