Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 71832 invoked from network); 30 Oct 2010 14:50:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Oct 2010 14:50:26 -0000 Received: (qmail 58140 invoked by uid 500); 30 Oct 2010 14:50:26 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 58017 invoked by uid 500); 30 Oct 2010 14:50:24 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 58009 invoked by uid 99); 30 Oct 2010 14:50:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 14:50:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brunorene@holos.pt designates 193.126.127.18 as permitted sender) Received: from [193.126.127.18] (HELO vm-mail.dmz.holos.pt) (193.126.127.18) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 14:50:16 +0000 Received: (qmail 921 invoked from network); 30 Oct 2010 14:49:51 -0000 Received: from a95-93-134-16.cpe.netcabo.pt (HELO pcportbrd) (brd@[95.93.134.16]) (envelope-sender ) by vm-mail.dmz.holos.pt (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 30 Oct 2010 14:49:51 -0000 From: =?iso-8859-1?Q?Bruno_Ren=E9_Santos?= To: References: <002401cb76a3$4b60e820$e222b860$@pt> <4CCA6229.4050807@maniatis.org> <001b01cb7780$17dfc010$479f4030$@pt> In-Reply-To: Subject: RE: Modified Fields Date: Sat, 30 Oct 2010 15:49:49 +0100 Message-ID: <001901cb7841$b5ddf220$2199d660$@pt> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Act3gl7KMBUpEBvLSKCKAAH8IYCxLgAvwEuw Content-Language: pt 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.=20 Thanx Bruno -----Mensagem original----- De: Michael Gentry [mailto:mgentry@masslight.net]=20 Enviada: sexta-feira, 29 de Outubro de 2010 16:59 Para: user@cayenne.apache.org Assunto: Re: Modified Fields Hi Bruno, Try dataContext.getObjectStore().getChanges(). mrg On Fri, Oct 29, 2010 at 11:43 AM, Bruno Ren=E9 Santos = wrote: > Hello all, > > Anyone knows how can I know which fields on a CayenneDataObject were = modified > since the last read? > > Thanx > Bruno Santos > >