Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 90583 invoked from network); 7 Sep 2010 14:24:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 14:24:29 -0000 Received: (qmail 12783 invoked by uid 500); 7 Sep 2010 14:24:29 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 12536 invoked by uid 500); 7 Sep 2010 14:24:26 -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 12517 invoked by uid 99); 7 Sep 2010 14:24:25 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 14:24:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of h.pikkemaat@tsi-solutions.nl designates 217.119.229.242 as permitted sender) Received: from [217.119.229.242] (HELO meel.traserv.com) (217.119.229.242) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 14:24:02 +0000 Received: from localhost (meel.traserv.com [127.0.0.1]) by meel.traserv.com (Postfix) with ESMTP id 2AE5A5B1DDF0 for ; Tue, 7 Sep 2010 16:23:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at tsi-solutions.nl Received: from meel.traserv.com ([127.0.0.1]) by localhost (meel.traserv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SP4iXw+DuDyy for ; Tue, 7 Sep 2010 16:23:36 +0200 (CEST) Received: from hpi.int.traserv.com (hpi.int.traserv.com [192.168.168.128]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by meel.traserv.com (Postfix) with ESMTP id E37E65B1DDE3 for ; Tue, 7 Sep 2010 16:23:36 +0200 (CEST) Message-ID: <4C864AE8.3090506@tsi-solutions.nl> Date: Tue, 07 Sep 2010 16:23:36 +0200 From: Hans Pikkemaat User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.9) Gecko/20100825 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: user@cayenne.apache.org Subject: Re: refreshing prefetched objects. References: <4C862784.7090709@tsi-solutions.nl> <16971818-1C6F-4B3B-A075-222E9AF087E7@objectstyle.org> In-Reply-To: <16971818-1C6F-4B3B-A075-222E9AF087E7@objectstyle.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Indeed very strange. I'm trying to reproduce now using a simple table structure but here it works fine. If I find something I'll let you know. Hans On 9/7/10 4:06 PM, Andrus Adamchik wrote: > Very strange. Prefetching always refreshes related objects. > > Andrus > > On Sep 7, 2010, at 7:52 AM, Hans Pikkemaat wrote: > >> Hi, >> >> I'm running a SelectQuery where I'm using a joint prefetch. >> >> query.addPrefetch(...).setSemantics(PrefetchTreeNode.JOINT_PREFETCH_SEMANTICS); >> >> I turned caching off. >> >> query.setCachePolicy(QueryMetadata.NO_CACHE); >> >> If I now run the query twice then the prefetched objects are not refreshed. >> I can see in the logs that the complete query is executed. >> >> The main table IS refreshed but the related ones not. >> >> Is there a way to tell cayenne to also refresh the related objects? >> >> tx >> >> Hans >>