I wrote this:
http://issues.apache.org/jira/browse/IBATIS-669

______________________________________________________________
> Od: "Clinton Begin" <clinton.be...@gmail.com>
> 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 <t.procha...@centrum.cz>
>
>>
>> Hi.
>>
>> This would be great, booth possibilities! Its in plan do this in 3.0
>> release?
>>
>> -------------------------- Original message --------------------------
>>  From: Clinton Begin <clinton.be...@gmail.com>
>>  Subject: two parametr in Mapper method
>>  Date: Monday, October 5, 2009, 4:52:08 AM
>> Attachments: Zpráva.html
>>  
>> msgid:16178eb10910041952u5ad70db3ja712c1a7ed762...@mail.gmail.com<msgid%3a16178eb10910041952u5ad70db3ja712c1a7ed762...@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-unsubscr...@ibatis.apache.org
>> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to