Tagged articles
SQL mapping
11 articles · Page 1 of 1
This tutorial walks through configuring MyBatis with XML for database operations, covering Maven dependencies, project structure, core configuration files, mapper interfaces, dynamic SQL, and JUnit testing with a complete employee CRUD example.
CRUDJDBCJUnit testing
0 likes · 20 min read

The article explains MyBatis’s three‑stage process—building an in‑memory mapping dictionary at startup, using JDK dynamic proxies to bind interface methods to that dictionary, and the runtime execution flow that translates a mapper call into JDBC operations, highlighting design choices such as builder chains, pre‑loading, and composition over inheritance.
Framework DesignJavaMyBatis
0 likes · 10 min read

MyBatis generates mapper implementations at runtime using JDK dynamic proxies; the proxy intercepts interface calls, builds a statementId from the interface’s fully‑qualified name and method name, looks up the corresponding MappedStatement via the namespace‑id convention, and delegates execution to SqlSession, eliminating the need for a concrete class.
JDK Dynamic ProxyJavaMapperMethod
0 likes · 13 min read

This article provides a comprehensive guide to MyBatis dynamic SQL, covering foreach loops, conditional if, choose, selectKey, trim, and sql fragments, with detailed explanations and full XML and Java code examples to help developers write efficient, error‑free mappings.
Dynamic SQLJavaMyBatis
0 likes · 20 min read

This article explains MyBatis dynamic SQL, its purpose, and how to use various tags such as if, where, trim, choose, foreach, include, sql, resultMap, association, and collection, providing detailed code examples and best‑practice guidelines for building flexible and secure SQL statements in Java applications.
Backend DevelopmentDynamic SQLJava
0 likes · 15 min read

This article provides a detailed, global‑level review of MyBatis, covering its main features such as SQL mapping, dynamic SQL, parameter and result mapping, transaction management, connection‑pool integration, second‑level cache, as well as the three‑layer architecture, configuration parsing, proxy creation, and SQL execution process.
BackendJavaMyBatis
0 likes · 9 min read

This article provides a comprehensive guide to MyBatis dynamic SQL tags—including foreach, if, where, choose, trim, set, and selectKey—showing how to build flexible queries, handle collections, and avoid common pitfalls with clear code examples and best‑practice explanations.
Backend DevelopmentDynamic SQLJava
0 likes · 18 min read

This article provides a comprehensive, step‑by‑step overview of MyBatis’s architecture—including its three‑layer design, configuration parsing, proxy generation, and SQL execution process—while highlighting key features such as SQL mapping, dynamic SQL, parameter and result mapping, transaction management, connection‑pool integration, and second‑level caching.
Backend DevelopmentJavaMyBatis
0 likes · 9 min read

This article provides a comprehensive, step‑by‑step analysis of MyBatis’s overall architecture, covering its core features, three‑layer design, configuration parsing, proxy generation, SQL execution process, and the underlying components that enable seamless Java‑to‑SQL mapping.
Backend DevelopmentJavaMyBatis
0 likes · 11 min read

This article provides a detailed walkthrough of MyBatis‑Plus internals, covering the auto‑configuration of SqlSessionFactory, parsing of mapper XML and annotations, registration of mapper interfaces via @MapperScan, creation of dynamic proxies, and the final assembly of executable SQL scripts for database interactions.
JavaMyBatis PlusSQL mapping
0 likes · 15 min read

This article provides a thorough overview of MyBatis, covering its core concepts, architecture, Spring integration, configuration elements, SQL mapping techniques, dynamic SQL tags, and practical usage tips such as type aliases, ResultMap, caching, and the differences between #{} and ${} placeholders.
Dynamic SQLJavaMyBatis
0 likes · 7 min read
