I have a trigger that is used to audit data modifications. I need to send a query before every JDBC call so it sends user id to Firebird. How could I use it with Hibernate?
JDBC query example:
select rdb$set_context('USER_SESSION','CURRENT_USER', ?) from rdb$database