|
I am having a table called User_To_Role where userid and roleid are the fields and they are composite PK, i am storing the relationship entries between the User and Role in the table. So whenever there is a new entry into this table as well as delete from this table, i need to audit that information in the Audit Info Table.
From the interceptor method, i generally get the serializable id parameter and log that in the entity Id field of my Audit Info table. But for this Composite PK, i want to know how should i log the information. I am sure lot of people might have faced similar problems and can somebody help me out in solving this issue.
|