I have a spring web application where I want to block the hibernate insert / delete / update operation if the user in httpSession is kind of superuser (where user.isSuper () returns true).
I have implemented a listener for these events, but the problem is that the listener does not start HQL queries (session.executeUpdate ()).
The same goes for interceptors.
Please, help.
source share