-->
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: Audit Logging using interceptor
PostPosted: Thu Sep 13, 2007 4:16 pm 
Newbie

Joined: Thu Sep 13, 2007 3:58 pm
Posts: 1
Hi,

I am trying to save the delta's during session updates using interceptor. I need to be able to retrieve the db table names and the db fields in OnFlushdiry() callback method.

This interceptor and the auditing functionality has to be global ... i.e. can be plugged into any session with out any code changes.

Some of the issues with this approach

1. In my case, one class is associated to many (3) entity-names. Although all these entities refer to the same table, the fields in the each of them are not the same. During onFlushDiry, I cannot get the right entityname.. is there a way to get that ?

2.When collections are updated as part of the object, is the onflushdirty() method called separately for each object in the collection in addition to call for the parent object.

3. How do you handle many-to-one types..? Is there a way to retrieve the field getting updated in the parent object instead of the associated object ..?


thanks for your help...


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.