Apache iBATIS: SqlMapConfig, statement mappings, parameter and result maps, dynamic SQL and the path to MyBatis.
The Framework That Became MyBatis iBATIS was an open source Java persistence framework created by Clinton Begin in 2002. It introduced a then-novel idea: keep your SQL under your ...
Same Family, New Home When iBATIS was renamed MyBatis, the framework was re-versioned to 3.x and adopted under a community home. The core design stayed the same; the packaging and ...
The iBATIS 2.x Dependency Legacy projects add the iBATIS jar and a JDBC driver to their build. The Maven coordinates for the last Apache release are shown below. In practice most ...
The Central Configuration SqlMapConfig.xml declares the data source, transaction settings and the list of SQL mapping files. Data Source Types SIMPLE: one connection per request, ...
The Heart of iBATIS SQL mapping files hold named statements, parameter maps and result maps. They were the pattern MyBatis inherited almost unchanged. Positional and Named ...
Connecting Columns and Properties Parameter maps describe how Java objects turn into bind values; result maps describe how result-set columns become Java properties. Parameter Map ...
Building SQL Conditionally iBATIS gave developers XML tags to compose SQL at runtime. Nearly every modern feature of MyBatis dynamic SQL began here. <dynamic> With <isNotEmpty> ...
A Mechanical, Well-Trodden Path Migrating iBATIS 2.x to MyBatis 3 changes packages, a few statement tags and the client API. The SQL itself mostly survives untouched. Step-by-Step ...