-->
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: Listener strategy question for audit trails.
PostPosted: Fri Jun 23, 2006 10:03 am 
Beginner
Beginner

Joined: Wed Apr 05, 2006 8:16 pm
Posts: 20
We have a SaveOrUpdateListener where we are trying to stamp audit trail data to our objects -- who was the last updater and when did they last update?

The only problem is that the stamps are occuring on objects associated with our main record object which are not dirty, but the stamp makes them dirty, and then another sql statement is brought into play. This has caused a whole lot of sql to be generated -- so much so that sometimes we deadlock DB2 with a simple update of our main record.

What is the best strategy for this kind of audit trail behavior which causes the least sql overhead in general?

Also, it would help us a lot, even it is not part of the best strategy, to know how to tell if an object is dirty as well. Are interceptors deprecated or are they still what we should be using for that? Is there a better way to tell if an individual object is dirty?

Thanks!,

Jim


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.