You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Mike Kienenberger (JIRA)" <ji...@apache.org> on 2013/09/24 22:25:03 UTC

[jira] [Closed] (CAY-414) Support for (batch) query interception and audit

     [ https://issues.apache.org/jira/browse/CAY-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Kienenberger closed CAY-414.
---------------------------------

    Resolution: Won't Fix

Ari is correct.  3.x and onward have lifecycle events that should provide the necessary hooks for performing auditing.
                
> Support for (batch) query interception and audit
> ------------------------------------------------
>
>                 Key: CAY-414
>                 URL: https://issues.apache.org/jira/browse/CAY-414
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 1.2 branch
>            Reporter: Andrus Adamchik
>            Assignee: Mike Kienenberger
>             Fix For: Undefined future
>
>         Attachments: 1.2-audit.patch-2006-09-05-00.txt, ExampleOfCreatingAuditLogRecordsInSameCommit.zip
>
>
> There is a common need to audit what Cayenne saves to the database. Currently people implement custom solutions, usually based on inspecting ObjectStore or overriding validateFor* on DataObjects. Due to a mismatch between object model and DB schema (after all ORM is intended to hide many DB details, think flattened relationships and such), clean audit is not always possible to be done that way.
> Ideally the solution should be intercepting BatchQueries, as this is what is being sent to the database in its raw form. Audit log should be commitable to the DB (two scenarios were mentioned: log committed in the same or in a separate transaction from the main change).
> The discussion of the possible design started in this thread:
> http://objectstyle.org/cayenne/lists/cayenne-devel/2005/12/0087.html
> Not sure if we should implement a standard "cayenne audit" feature, or simply provide needed extension points and post an audit solution as an example. I am more in favor of a second option (simple extension point) as the actual audit requirements may vary from app to app.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira