I have a classic 3-tier web application build with MySQL and Tomcat.
I want to save the creator id of each database record for all tables at creator_id column or just log it somewhere. Current user is stored at the http session object. Modify all queries and pass creator id parameter is unacceptable.
Can I solve the problem using triggers, alter table commands etc.? What is the best way to do that?
PS. Hacks are acceptable and welcome.
Thanks.