localObject()

From: Marcin Skladaniec (marci..sh.com.au)
Date: Wed Feb 08 2006 - 19:54:16 EST

  • Next message: Andrus Adamchik: "Re: localObject()"

    Hi

    I'm using localObject() method to move an object from between
    CayenneContext on client (from shared context to a new dedicated
    context). What I found is, that the object is copied correctly on
    client side, but not on server side. When I try to commit changes on
    server side related DataContext is empty.
    To be specific:
    in ChildDiffLoader findObject() is returning null

    As a temporary workaround object we are re-fetching object in a new
    context.

    I wanted to try to fix this method, but I'm not sure about it's
    current state, as there are plenty todos and comments around
    localObject() method, and some of them are quite obsolete.

    Cheers
    Marcin

    Ps Andrus, I will start to look into caching/paging on the weekend.



    This archive was generated by hypermail 2.0.0 : Wed Feb 08 2006 - 19:54:18 EST