> On Aug 27, 2015, at 4:21 PM, Mike Kienenberger <mkien...@gmail.com> wrote: > > I think the only thing missing from this approach is a guarantee that > the audit data is committed in the same transaction as the data being > logged.
That is actually a Cayenne TODO - DataChannelFilter should be wrapped in transaction (instead of DataChannelFilter wrapping a transaction that happens inside DataDomain). Once we do it, you can commit extra things from the filter, and it will happen in the same tx as the main commit. Andrus