Tag: ORM

8 articles

Handwritten ORM Framework 4: Framework Optimization and D...

Optimize handwritten ORM framework, focusing on getMapper method implementation in DefaultSqlSession, using JDK dynamic proxy to create Mapper interface proxy objects. Practical analysis of princip...

Handwritten ORM Framework 3: SqlSession, Executor Working...

In-depth analysis of SqlSession and Executor working principles in handwritten ORM framework, detailing implementation mechanisms of SqlSessionFactoryBuilder, DefaultSqlSession, SimpleExecutor.

Handwritten ORM Framework 2: Resources, MappedStatement, ...

This article teaches you to handwrite an ORM framework, detailing the implementation of core components like Resources, MappedStatement, XMLBuilder, including configuration file parsing and mapping...

Handwritten ORM Framework 1 - JDBC Problems and Solutions

First article in the handwritten ORM framework series, introducing problems and disadvantages of traditional JDBC development and ORM framework design ideas and solutions. Practical analysis of pri...

MyBatis Deep Dive - Many-to-Many Model with Collection Tags

Detailed explanation of many-to-many model mapping in MyBatis, including intermediate table design, user-role relationship implementation, collection tag usage, and complete code examples for many-...

MyBatis Deep Dive - One-to-Many Model with Collection Tags

Detailed explanation of one-to-many model mapping in MyBatis, including database table design, collection tag usage, Java entity class definitions, and implementation and testing of one-to-many que...

MyBatis Deep Dive - One-to-One Mapping, SqlMapConfig and ...

Detailed explanation of one-to-one model mapping in MyBatis, including database table design, Java entity class definitions, Mapper interface and XML configuration, and resultMap advanced mapping u...

MyBatis Deep Dive - ORM Concepts, Mapping Relations, and ...

This article introduces the MyBatis framework in depth, starting from ORM concepts, explaining MyBatis development history, technical advantages, and comparisons with common ORM frameworks like Hib...