From torque-user-return-6724-apmail-db-torque-user-archive=db.apache.org@db.apache.org Mon Jan 23 17:41:19 2006 Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 21112 invoked from network); 23 Jan 2006 17:41:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 17:41:18 -0000 Received: (qmail 7092 invoked by uid 500); 23 Jan 2006 17:41:17 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 7070 invoked by uid 500); 23 Jan 2006 17:41:17 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 7059 invoked by uid 99); 23 Jan 2006 17:41:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 09:41:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.97.32.22] (HELO smtp01.kpnqwest.it) (212.97.32.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 09:41:14 -0800 Received: from [127.0.0.1] (marrosso.adigitali.com [62.173.176.42]) by smtp01.kpnqwest.it (Postfix) with ESMTP id D84DC2B8E6 for ; Mon, 23 Jan 2006 18:40:52 +0100 (CET) Message-ID: <43D515B1.3020303@adigitali.it> Date: Mon, 23 Jan 2006 18:43:13 +0100 From: Andrea Papotti Organization: Alchimie Digitali S.r.l. User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: it, it-it, en-us, en MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: bug or misunderstood feature? References: <8F5843B903F59D4C8C6806BB49A39119062962@dukece-mail3.dukece.com> In-Reply-To: <8F5843B903F59D4C8C6806BB49A39119062962@dukece-mail3.dukece.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Greg Monroe ha scritto: >I suggest updating to version 3.2. I looked at the >forgiegn key collection code generated by this >version and it does check to see if the criteria >has changed. I suspect it was one of the bugs >fixed. > > From 3.2's public List get${relCol}() #if ($silentDbFetch) throws TorqueException #end { #if ($objectIsCaching) #if (!$silentDbFetch) if (isNew()) { init${relCol}(); } #else if ($collName == null) { $collName = get${relCol}(new Criteria(10)); } #end return $collName; #else return get${relCol}(new Criteria(10)); #end } Which means: "If caching is enabled, return the chached collection (whatever war the criteria utilized to generate it)" IMHO this is uncorrect for the same considerations of the first post. The only way to obtain the correct results is to disable the caching, which leads to a _no_caching_at_all_ situation (bad vibrations, man) Or we still have not understood the objective of the method (most likely) or the method behaviour is still the same of the 3.1. Andrea Papotti Alchimie Digitali S.r.l. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org