Why would anyone want to declare Sql in Xml ?
Apparently there is a tool called
iBATIS
in the java world, and now in the
.NET world
too, that is like an O/R mapper except that instead of
generating your sql at run-time, or using stored procs, it
uses the Sql that you declare in an Xml file. This just
seems totally bizarre to me, and as far as I can tell their
main argument for doing this is because they want an O/R
mapper, but they want total control over all the Sql, and of
course they also like to note that this allows them to avoid
recompiles. I just don't get why anyone would want to write
Sql in Xml, and so far the person that has been posting
about this tool pretty much makes his entire argument that
this is just better, without any supporting rationale -- so
what do you think about this tool?