cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <>
Subject Re: How to use TransactionDelegate to do audit logging?
Date Thu, 14 Sep 2006 17:31:50 GMT

In my opinion, this will not do what you want.

Please see this jira issue for an example of how to solve this problem
(currently, it requires a patch to Cayenne 1.2).

On 9/14/06, Jeff de Vries <> wrote:
> I want to add a record to an audit table whenever certain objects are
> saved to the database.  Based on earlier posts, I think I need to create
> a custom TransactionDelegate, and override didCommit() (or
> willCommit()).  What I don't understand is how to access the objects
> that are going to be saved for this transaction so I can pull relevant
> information out for the audit record.  Are there any examples of doing this?
> Thanks,
> Jeff de Vries

View raw message