Re: Making sense of callbacks

From: Lachlan Deck (lachlan.dec..mail.com)
Date: Sun Nov 01 2009 - 17:51:31 EST

  • Next message: Andrey Razumovsky: "Re: Making sense of callbacks"

    On 01/11/2009, at 10:24 PM, Andrus Adamchik wrote:

    >
    > On Oct 30, 2009, at 11:21 PM, Lachlan Deck wrote:
    >
    >> I refactored these (after the jar update) to postAdd (when noticing
    >> that it wasn't working anymore .. and checked the mail archives for
    >> what Andrus had committed) ... and found that things weren't
    >> working either way until I rolled back the jar update.
    >
    > Actually no refactoring should is needed. Just open the model in the
    > new CayenneModeler and agree to perform an upgrade. It will remap
    > (in the XML) the existing Java method names to the right callbacks.
    > Or do you configure callbacks in the code, not the model?

    Yeah - we've not configured any callbacks in the Model. Just accept
    the default behaviour... so our code obviously needed adjusting
    prePersist() -> postAdd().

    with regards,

    --
    

    Lachlan Deck



    This archive was generated by hypermail 2.0.0 : Sun Nov 01 2009 - 17:52:12 EST