cayenne-user mailing list archives

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

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).

http://issues.apache.org/cayenne/browse/CAY-414

On 9/14/06, Jeff de Vries <jdevries@pfrog.com> 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
>
>

Mime
View raw message