Migrate iBatis SQL maps to MyBatis mappers

Proprietary

Turns iBatis 2 <sqlMap> XML into MyBatis 3 <mapper> XML: the DOCTYPE, the namespace, parameterClass and resultClass, inline parameters such as #name:VARCHAR#, the dynamic SQL elements (<dynamic>, <isNotNull>, <isEqual>, <iterate> and the rest) as <where>, <trim>, <if> and <foreach>, <selectKey> order, nested selects as <association>, and cache models as <cache>. Type aliases declared in a SQL map are inlined there and move to the configuration.

io.moderne.mybatis.MigrateSqlMapXmlToMapper
mod run . --recipe=io.moderne.mybatis.MigrateSqlMapXmlToMapper

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.