I want to log all changes in my database for auditing purposes, using a table called AuditEvent that stores the modified row ID (primary key), table name, column name, previous value, new value, date of change (timestamp), operation type (insert / update / delete) and the name of the user who did the changes.
I'm using SQL Server 2005, but I don't want to use triggers, because since I use a connection pool it would be difficult to find the current user.
The Hibernate solution based on an Interceptor is pretty simple. How do I do something similar when using iBATIS / iBATOR ?