Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 24886 invoked from network); 19 May 2006 07:31:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2006 07:31:58 -0000 Received: (qmail 60035 invoked by uid 500); 19 May 2006 07:31:57 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 60018 invoked by uid 500); 19 May 2006 07:31:56 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 60009 invoked by uid 99); 19 May 2006 07:31:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 00:31:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marcin@ish.com.au designates 218.214.52.22 as permitted sender) Received: from [218.214.52.22] (HELO fish.ish.com.au) (218.214.52.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 00:31:55 -0700 Received: from [203.29.62.201] (helo=neuro.net.au) by fish.ish.com.au with esmtps (SSLv3:DES-CBC3-SHA:168) (Exim 4.43) id 1Fh73A-0002mT-Gl for cayenne-user@incubator.apache.org; Sat, 20 May 2006 01:38:00 +1000 Received: from [203.29.62.197] (HELO [203.29.62.197]) by neuro.net.au (CommuniGate Pro SMTP 4.3.8) with ESMTP id 2380923 for cayenne-user@incubator.apache.org; Fri, 19 May 2006 17:31:26 +1000 Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <446D44F0.4000002@pfrog.com> References: <6C7EF1C5-A375-4076-A8DB-F85530717ADF@objectstyle.org> <446D44F0.4000002@pfrog.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcin Skladaniec Subject: Re: Caching problem? Date: Fri, 19 May 2006 17:31:27 +1000 To: cayenne-user@incubator.apache.org X-Mailer: Apple Mail (2.750) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You are not mentioning if you use caching or not. For me it looks like you get your Child records from cache. Marcin On 19/05/2006, at 2:09 PM, Jeff de Vries wrote: > Simplified version: I have a parent table and a child table, where > the child table has a parent_id column and a status column. I > change the status in one of the child records and commit the > change. Later, I ask for the child records for the given parent > record, but the child record that I get back on which I changed the > status still has the *old* status instead of the new status. If I > look at the database, the child record does have the new status > (and in fact I can see the update and commit as soon as I commit > the child record change). > > Why is the parent still seeing the old child status? An additional > note is that I'm not using parent.getChildArray() but rather a > SelectQuery(Child) that matches toParent to the parent I'm > interested in. > > (This is in Cayenne 1.2B2 using PostgreSQL 8.1) > > Thanks, > Jeff > --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001