Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 67598 invoked from network); 7 Jun 2007 03:26:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2007 03:26:44 -0000 Received: (qmail 66852 invoked by uid 500); 7 Jun 2007 03:26:44 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 66837 invoked by uid 500); 7 Jun 2007 03:26:44 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 66822 invoked by uid 99); 7 Jun 2007 03:26:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 20:26:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of larry.meadors@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 20:26:39 -0700 Received: by ug-out-1314.google.com with SMTP id o2so614770uge for ; Wed, 06 Jun 2007 20:26:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ORW/Pg63wNOhj1s8CikF0S0sBCKBV5jyZjc8UdOgb7g/md6H1OTbAosT7YJuxQN+mgho/Yt49l+zBNvDLBfQ3UR5osA9SyzWopzF4WSsa/ePRTjdZX5+BdT+XYXdIZ9JAyR8EdhBOMTv1Lhgd9lSi8tgkmup1bcWuhx7+ITu7Z4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XiCy86SG7B47HmkNaIqmACwPWKi4MznpKzQ1YWiwOR8KtUNv0hXd/r/I7uOpZHmEqK3jzZpBlRaFpLR/by/IkkAAkwcQSSZ3S3f3fvkIraBpKxGOz8KHeEX538fSb7AGIKShg+EQTbunhDofmskb/b7cugaP/J6brdhowudg7qY= Received: by 10.78.184.2 with SMTP id h2mr552068huf.1181186777613; Wed, 06 Jun 2007 20:26:17 -0700 (PDT) Received: by 10.78.58.4 with HTTP; Wed, 6 Jun 2007 20:26:17 -0700 (PDT) Message-ID: Date: Wed, 6 Jun 2007 21:26:17 -0600 From: "Larry Meadors" Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org, "Gwyn Evans" Subject: Re: Cache object reference In-Reply-To: <1957984991.20070606211424@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1957984991.20070606211424@gmail.com> X-Google-Sender-Auth: d35a874f6001fcf1 X-Virus-Checked: Checked by ClamAV on apache.org Ya, it's in the book, buy it! :-) http://www.amazon.com/gp/product/1932394826?ie=UTF8&tag=ai0e-20&link_code=as3&camp=211189&creative=373489&creativeASIN=1932394826 Larry On 6/6/07, Gwyn Evans wrote: > On Wednesday, June 6, 2007, 11:59:47 AM, Larry wrote: > > > On 6/6/07, Meindert wrote: > >> Is it by design that the object returned from the cache has the same object > >> reference as the on in the cache? > > > In your cache definition, you have readonly="true", but are not > > modifying the results. You are a very bad boy. Don't do that. :-) > > Don't you mean "but are modifying the results"? :-) > > Anyway, for the OP, Larry's obviously too polite, but "iBATIS in > Action" has a good explanation about this (and a lot else) - See > section 9.3.4 on p200. > > /Gwyn > >