ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Re: XML vs Annotations
Date Mon, 08 Feb 2010 13:16:11 GMT
On Sun, Feb 7, 2010 at 4:48 PM, Guy Rouillier <guyr-ml1@burntmail.com>wrote:

> I don't know if what you are trying to do is possible, but it seems to
> defeat the intent of iBATIS (remove all the routine JDBC code and replace it
> with declarations, so your Java code becomes much simpler.)
> Simpler Java code is nice, but there are lots of ways to simplify it.
Moving SQL to XML is better than using string concatenation in Java but not
as good as an internal DSL for building queries. Having everything in Java
yields superior capabilities such as compile-time checks, refactorings, etc.

> If you are going to add lots of Java code to build the mappings, you might
> as well just go back to using straight JDBC.
> But... then I won't have SQL to Object mapping anymore... iBATIS is about
SQL Mapping - it should not force any particular approach to using that core

Daryl Stultz
6 Degrees Software and Consulting, Inc.

View raw message