Re: [JIRA] Created: (CAY-834) DataContext and DataDomain must support lifecycle callbacks out of the box without wrapping

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Jul 29 2007 - 18:35:49 EDT

  • Next message: Aristedes Maniatis: "Re: Ohloh"

    I just fixed this issue. Meaning lifecycle callbacks are now first-
    class citizens in Cayenne runtime and are always on.

    One case I am not entirely sure how to handle is nested DataContexts.
    Currently commit callbacks are not called on every DataContext in the
    chain, rather they are only invoked at the end of the chain at the
    DataDomain. Which may be ok... but PRE_PERSIST and PRE_REMOVE are
    still called on every context in the chain... Feels like an
    inconsistency. Need to figure out a good way to handle that.

    Andrus

    On Jul 30, 2007, at 12:09 AM, Andrus Adamchik (JIRA) wrote:

    > DataContext and DataDomain must support lifecycle callbacks out of
    > the box without wrapping
    > ----------------------------------------------------------------------
    > ---------------------
    >
    > Key: CAY-834
    > URL: https://issues.apache.org/cayenne/browse/CAY-834
    > Project: Cayenne
    > Issue Type: Improvement
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Reporter: Andrus Adamchik
    > Assignee: Andrus Adamchik
    > Fix For: 3.0
    >
    >
    > Wrapping cayenne stack objects in interceptors to do lifecycle
    > callbacks is counterintuitive, requires extra code, and actually
    > causes changes in behavior (CAY-830). We will need to incorporate
    > callback logic in the main stack classes - DataContext, DataDomain.
    >
    > --
    > This message is automatically generated by JIRA.
    > -
    > You can reply to this email to add a comment to the issue online.
    >
    >



    This archive was generated by hypermail 2.0.0 : Sun Jul 29 2007 - 18:36:37 EDT