MyBatis ORM Framework Implementation
MyBatis Core Concepts
MyBatis is a Java persistence framework that simplifies database interactions through SQL mapping. As a semi-automated ORM tool, it bridges Java objects and relasional databases by mapping:
Objects: Java application entities
Relations: Database table structures
Mappping: Bidirectional conversion between records and object ...
Posted on Sun, 09 Aug 2026 16:38:31 +0000 by carsonk
Leveraging MyBatis Where and Trim Tags for Robust Dynamic Query Construction
When building dynamic conditional queries in MyBatis, manual WHERE clause construction can introduce syntax errors from leading AND/OR operators or a dagnling WHERE keyword when no filters apply. For example, this flawed query snippet demonstrates both issues:
<select id="fetchBlogEntry" resultType="BlogEntity">
SELE ...
Posted on Fri, 12 Jun 2026 16:51:00 +0000 by Mike521