MyBatis Patterns Use MyBatis when SQL control and explicit mappings matter. Keep SQL readable, make mapper contracts small, and put business transactions in the service layer. Pair this skill with for application structure, for schema changes, or for engine-specific SQL, and for untrusted input and access-control concerns. When to Activate - Adding or reviewing MyBatis mapper interfaces or XML files - Choosing between XML mappers, annotation mappers, and generated SQL - Designing mappings, joins, nested collections, or projections - Reviewing dynamic SQL, parameter binding, pagination, or bat…