Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 88018 invoked from network); 6 Oct 2009 06:25:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Oct 2009 06:25:30 -0000 Received: (qmail 75515 invoked by uid 500); 6 Oct 2009 06:25:29 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 75500 invoked by uid 500); 6 Oct 2009 06:25:29 -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 75492 invoked by uid 99); 6 Oct 2009 06:25:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 06:25:29 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [90.183.38.158] (HELO gmmr2.centrum.cz) (90.183.38.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 06:25:20 +0000 Received: from gmma2 (lb1-self.cent [10.20.11.5]) by gmmr2.centrum.cz (Postfix) with ESMTP id DB85E140003A1 for ; Tue, 6 Oct 2009 08:24:29 +0200 (CEST) Received: from gmmr1.centrum.cz ([127.0.0.1]) by gmma2 (gigamail-antispam); Tue, 06 Oct 2009 08:24:29 +0200 Received: from gmmr1.centrum.cz (lb1-self.cent [10.20.11.5]) by gmma2 (esets_smtp); Tue, 06 Oct 2009 08:24:29 +0200 Received: from mail1006.cent (lb1-self.cent [10.20.11.5]) by gmmr1.centrum.cz (Postfix) with SMTP id BCFE81200017A for ; Tue, 6 Oct 2009 08:24:29 +0200 (CEST) Received: from localhost by localhost (Centrum Email Forwarder); Tue, 06 Oct 2009 08:24:28 +0200 To: Subject: Re: two parametr in Mapper method Received: from 94.113.5.165 (X-Forwarded-For: 94.113.5.165) by mail1006.centrum.cz (centrum.cz multimail) with HTTP Date: Tue, 06 Oct 2009 08:24:28 +0200 From: =?UTF-8?Q?Tom=C3=A1=C5=A1=20Proch=C3=A1zka?= References: <1254682800.817517.24647.nullmailer@mail1008.cent> <16178eb10910041434q640c6d34lf9065c6246368695@mail.gmail.com> <4AC95346.6060508@burntmail.com> <16178eb10910041952u5ad70db3ja712c1a7ed7628a4@mail.gmail.com> <1254735906.237143.10053.nullmailer@mail1006.cent> <16178eb10910050710h66ff0e43h908114202f366737@mail.gmail.com> In-Reply-To: <16178eb10910050710h66ff0e43h908114202f366737@mail.gmail.com> X-Mailer: Centrum Email 5.3 X-Priority: 3 MIME-Version: 1.0 X-Maser: Georgo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <1254810268.390721.13967.nullmailer@mail1006.cent> X-EsetResult: clean X-CentrumSpamScore: +33 X-SpamDetected: 0 X-Virus-Checked: Checked by ClamAV on apache.org I wrote this: http://issues.apache.org/jira/browse/IBATIS-669 ______________________________________________________________ > Od: "Clinton Begin" > Komu: user-java@ibatis.apache.org > Datum: 05.10.2009 16:11 > Předmět: Re: two parametr in Mapper method > >You should create a Jira ticket, as I don't think anyone has on this subject >yet. > >2009/10/5 Tomáš Procházka > >> >> Hi. >> >> This would be great, booth possibilities! Its in plan do this in 3.0 >> release? >> >> -------------------------- Original message -------------------------- >> From: Clinton Begin >> Subject: two parametr in Mapper method >> Date: Monday, October 5, 2009, 4:52:08 AM >> Attachments: Zpráva.html >> msgid:16178eb10910041952u5ad70db3ja712c1a7ed7628a4@mail.gmail.com >> >> >> There's no way to introspect on the parameter names. >> >> >> >> So your choices become: >> >> >> >> @Select({"SELECT * FROM send LIMIT #{1}, #{2}"}) >> List getAllItems(int offset, int limit); >> >> >> >> ...Or... >> >> >> >> @Select({"SELECT * FROM send LIMIT #{offset}, #{limit}"}) >> List getAllItems(@Param("offset") int offset, @Param("limit") int limit); >> >> >> >> Both suck. But we'll probably default to the first, and allow for the >> second. >> >> >> ------------------------ Konec původní zprávy ------------------------ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org >> For additional commands, e-mail: user-java-help@ibatis.apache.org >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org