MyBatis SQL Execution Pipeline: From SqlSession to Executor with Caching and Interceptor Support
MyBatis operates as a semi-automated ORM framework, decoupling SQL from Java code via XML or annotations. Its SQL execution follows a delegation chain: SqlSession.getMapper() produces a proxy, MapperProxy intercepts calls, MapperMethod translates them, and Executor handles database interaction, caching, and plugins.
This article dissects the ca ...
Posted on Sun, 07 Jun 2026 17:12:20 +0000 by rmbarnes82