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 <[EMAIL PROTECTED]> 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
