Re: How to use TransactionDelegate to do audit logging?

From: Mike Kienenberger (mkienen..mail.com)
Date: Tue Oct 03 2006 - 13:09:24 EDT

  • Next message: Øyvind Harboe: "Problems with Derby, database generated primary keys and dataport"

    On 10/3/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > In Cayenne I would still use a separate peer DataContext to commit
    > changes from within callbacks. And use explicit transactions so that
    > multiple DataContexts commit atomically.
    >
    > > 4) JPA states that a new+update event and an update+delete event may
    > > not execute the update event listener.

    I think no update event for update+delete is a great idea.

    I think new+update is undefined. If I get the "new+update" values in
    the new event, that's perfect. If I only get the "new" event values
    and not the "update" event values, then I'm thinking it's pretty lame
    :-)



    This archive was generated by hypermail 2.0.0 : Tue Oct 03 2006 - 13:09:31 EDT