ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: If all my sql is in xml, do I gain that much (assuming unit tests) using Mapper objects as well?
Date Thu, 18 Feb 2010 03:12:03 GMT
To me, it's about readability.  I think there's an example in the
documentation to this point...

Clinton

On Wed, Feb 17, 2010 at 2:28 PM, Rick R <rickcr@gmail.com> wrote:

>
>
> On Wed, Feb 17, 2010 at 4:09 PM, Jeff Butler <jeffgbutler@gmail.com>wrote:
>
>> In my case, it's a bit less code:
>>
>> Mapper interface:
>> List<MyObject> 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.
>
>

Mime
View raw message