cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno René Santos <>
Subject RE: Modified Fields
Date Sat, 30 Oct 2010 14:49:49 GMT
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. 


-----Mensagem original-----
De: Michael Gentry [] 
Enviada: sexta-feira, 29 de Outubro de 2010 16:59
Assunto: Re: Modified Fields

Hi Bruno,

Try dataContext.getObjectStore().getChanges().


On Fri, Oct 29, 2010 at 11:43 AM, Bruno René Santos <> wrote:
> Hello all,
> Anyone knows how can I know which fields on a CayenneDataObject were modified
> since the last read?
> Thanx
> Bruno Santos

View raw message