Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 23477 invoked from network); 17 Feb 2010 21:28:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2010 21:28:58 -0000 Received: (qmail 18143 invoked by uid 500); 17 Feb 2010 21:28:57 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 18078 invoked by uid 500); 17 Feb 2010 21:28:57 -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 18070 invoked by uid 99); 17 Feb 2010 21:28:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 21:28:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rickcr@gmail.com designates 72.14.220.159 as permitted sender) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2010 21:28:50 +0000 Received: by fg-out-1718.google.com with SMTP id 19so340105fgg.6 for ; Wed, 17 Feb 2010 13:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=m/puVcIgTFGSwix4RzZJWJ4b9BwoL8rb16XvXv5J2V0=; b=jZJxgBGorvxKlMGbcytiRuDprXOWadwUtM4PX10XaAAaR/NVQZpntZ26zkmYWfL/dJ qMDyFUd9r66zeF7AjWW+ScBte2OBA6JbtkOU/qTad3hcBSssU+fGoSoAYoAyxAQDhIx2 kZEH19KPoocbR3Km7xuLbhfNgdkHaHS2sZTxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=vJjB8qc1ni8UhytglDwMobA/vry31b7Yq5px2gm4w1WKHWhnXBhKHlLoq0Xs4hS7xp vYOI5TBexP4xPYDSNCEkK4nAAtnP1BkNC5+svz4BtqehETwSlQzlDv3+bMlEGN4cof7z XHlEhaJIV6DNGxSwqJAeYa4poUYI1oYoZ8fLw= MIME-Version: 1.0 Received: by 10.216.90.131 with SMTP id e3mr1785016wef.69.1266442109476; Wed, 17 Feb 2010 13:28:29 -0800 (PST) In-Reply-To: References: <583d4dff1002171138w7162230dr737ffcd510384b13@mail.gmail.com> <583d4dff1002171236p23148cc6o678994f20181c0eb@mail.gmail.com> From: Rick R Date: Wed, 17 Feb 2010 16:28:09 -0500 Message-ID: <583d4dff1002171328l6f3da805p5b46cf11a55e9911@mail.gmail.com> Subject: Re: If all my sql is in xml, do I gain that much (assuming unit tests) using Mapper objects as well? To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=0016e6dab17110602a047fd28852 --0016e6dab17110602a047fd28852 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 17, 2010 at 4:09 PM, Jeff Butler wrote: > In my case, it's a bit less code: > > Mapper interface: > List getByCompoundKey(@Param("id1") Integer id1, > @Param("id2") Integer id2); > Ah I see. That's an excellent point! I hadn't thought of that. In our case 99% of the parms will be coming in through a single pojo type being passed to the query, but I can totally see how the above would be extremely useful. --0016e6dab17110602a047fd28852 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Feb 17, 2010 at 4:09 PM, Jeff Bu= tler <jeffgbu= tler@gmail.com> wrote:
In my case, it's a bit less code:

Mapper interface:
List<MyObject> getByCompoundKey(@Param("id1") Integer id1,<= br> @Param("id2") Integer id2);
=A0

Ah I see.= That's an excellent point!=A0 I hadn't thought of that. In our cas= e 99% of the parms will be coming in through a single pojo type being passe= d to the query, but I can totally see how the above would be extremely usef= ul.
--0016e6dab17110602a047fd28852--