Re: how to access old object

From: Bryan Lewis (brya..aine.rr.com)
Date: Thu Jun 02 2005 - 08:22:00 EDT

  • Next message: Paul Furbacher: "Unit test for CayenneClinic (Spring integration demo) -- DataContext binding to threadlocal?"

    You can get a copy of the old object's data in a DataRow (essentially a
    Map).

    DataRow oldData = context.getObjectStore().getSnapshot(object.getObjectId(),
    context);

    ----- Original Message -----
    From: "Tomas Jucius" <entire..mail.com>
    To: <cayenne-use..bjectstyle.org>
    Sent: Thursday, June 02, 2005 4:54 AM
    Subject: how to access old object

    I modify object and in the context have modified ....

    Is it possible to access old not modified object?



    This archive was generated by hypermail 2.0.0 : Thu Jun 02 2005 - 08:22:08 EDT