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 <ric...@gmail.com> wrote: > > > On Wed, Feb 17, 2010 at 4:09 PM, Jeff Butler <jeffgbut...@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. > >