ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick R <ric...@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 Wed, 17 Feb 2010 21:28:09 GMT
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.

View raw message