These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Auditing Using Interceptors - For Composite PK
PostPosted: Tue Oct 10, 2006 12:31 am 
Newbie

Joined: Mon Oct 09, 2006 11:50 pm
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.