Re: Modified Fields

From: Mike Kienenberger (mkienen..mail.com)
Date: Mon Nov 01 2010 - 13:27:16 UTC

  • Next message: Bryan Lewis: "Re: Modified Fields"

    It's been a while, so I don't remember if it is still relevant for 3.x, but

    https://issues.apache.org/jira/browse/CAY-414

    contains code for audit logging under Cayenne 2.0.

    On Sat, Oct 30, 2010 at 10:49 AM, Bruno René Santos <brunoren..olos.pt> wrote:
    > I only found the hasChanges()... there is, on the other hand, a
    > getSnapshot(ObjectId) function. Could I use it to compare to my
    > CayenneDataObject, field by field, in order to check which ones were changed?
    > This is because I need to create log entries where for each update I only
    > specify the key-value pair for the modified fields.
    >
    > Thanx
    > Bruno
    >
    > -----Mensagem original-----
    > De: Michael Gentry [mailto:mgentr..asslight.net]
    > Enviada: sexta-feira, 29 de Outubro de 2010 16:59
    > Para: use..ayenne.apache.org
    > Assunto: Re: Modified Fields
    >
    > Hi Bruno,
    >
    > Try dataContext.getObjectStore().getChanges().
    >
    > mrg
    >
    >
    > On Fri, Oct 29, 2010 at 11:43 AM, Bruno René Santos <brunoren..olos.pt> wrote:
    >> Hello all,
    >>
    >> Anyone knows how can I know which fields on a CayenneDataObject were modified
    >> since the last read?
    >>
    >> Thanx
    >> Bruno Santos
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Nov 01 2010 - 13:28:11 UTC