I need to audit some entities within my business, I found a solution making use of the Event Listener of Nhibernate, everything is fine up to that point but I need besides registering the sql statement. I have an entity which I name DbLog where I store the user that performed the action, the name of the entity, the date, which action was executed (Delete, Update or Insert) but I need to register the sql statement. I do not know how to do it.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Custom SqlStatementLogger | 3 | 1063 | March 15, 2020 | |
| Hibernate listener for create table DDL events | 3 | 1311 | January 19, 2018 | |
| How to get literals for StatementInspector | 4 | 531 | May 30, 2024 | |
| Custom SqlStatementLogger setup | 6 | 689 | December 28, 2023 | |
| Is there any way to Extract the final SQL from Hibernate? | 2 | 372 | June 1, 2024 |