ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <larry.mead...@gmail.com>
Subject Re: iBATIS 3 XML SQL Map Decisions...
Date Sat, 16 Aug 2008 04:57:16 GMT
On Wed, Aug 13, 2008 at 4:27 PM, Clinton Begin <clinton.begin@gmail.com> wrote:
> 3. <param element> :  The thought here is to allow for specifying the
> options (e.g. javaType="") outside of the SQL statement and to avoid
> duplication if the same property is used more than once.  But maybe it's too
> much for such a rare case?  But still, some people may prefer to keep the
> param details out of the SQL itself.  Hmmm... anyone else have an opinion
> here?  I'd love to only use inline params myself. But it's almost too easy
> to agree in this case. :-)

I like the *option* for param elements because it can help keep the sql cleaner.

One of the biggest advantages of ibatis is that you can easily take
the sql and just run it. IMO, adding a ton of inline parameter mapping
info can make that harder.


View raw message