Re: How to use TransactionDelegate to do audit logging?

From: Mike Kienenberger (mkienen..mail.com)
Date: Thu Sep 14 2006 - 13:31:50 EDT

  • Next message: Dima Gritsenko: "Error resolving fault for ObjectId"

    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 <jdevrie..frog.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
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Sep 14 2006 - 15:22:12 EDT