Tag: Mybatis
23 articles
Handwritten ORM Framework 4: Framework Optimization and DefaultSqlSession Proxy Implementation
Optimize handwritten ORM framework, focusing on getMapper method implementation in DefaultSqlSession, using JDK dynamic proxy to create Mapper interface proxy objects.
Handwritten ORM Framework 3: SqlSession and Executor Working Principles
In-depth analysis of SqlSession and Executor working principles in handwritten ORM framework, detailing implementation mechanisms of SqlSessionFactoryBuilder...
Handwritten ORM Framework 2: Resources, MappedStatement, and XMLBuilder Implementation
In the current project, create under resources: sqlMapConfig.xml mapper.xml
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.
MyBatis Design Patterns - Proxy Pattern and Source Code Analysis
Proxy Pattern: Provides a proxy for an object and controls access to the original object through the proxy. The English name of proxy pattern is Proxy.
MyBatis Design Patterns - Builder Pattern, Factory Pattern and Source Code Analysis
Detailed introduction to design patterns used in MyBatis source code including builder pattern, factory method pattern, singleton pattern, proxy pattern...
MyBatis Annotation Development - One-to-Many and Many-to-Many Mapping
The relationship between user table and order table: one user has multiple orders, one order belongs to one user.
MyBatis Annotation Development - Basic Introduction and One-to-One Mapping
Detailed introduction to MyBatis annotation development approach, including usage of common annotations (@Select, @Insert, @Update, @Delete, @Results, etc.
MyBatis Deep Dive - Many-to-Many Model with Collection Tags
In database design, a "many-to-many" relationship means records in two tables can be associated with each other, with multiple records associated with multiple records.
MyBatis Deep Dive - One-to-Many Model with Collection Tags
In database design, one-to-many (One-to-Many) relationship is one of the most common relationship models.
MyBatis Deep Dive - One-to-One Mapping, SqlMapConfig and Mapper XML Configuration
Detailed explanation of one-to-one model mapping in MyBatis, including database table design, Java entity class definitions, Mapper interface and XML configuration.
MyBatis Deep Dive - Dynamic SQL, Parameters, Foreach and SQL Fragments
In-depth explanation of MyBatis dynamic SQL configuration including if conditions, where tags, foreach loops, and sql fragment extraction.
MyBatis Mapper Proxy Invoke - Source Code Analysis
Detailed introduction to MyBatis Mapper Proxy dynamic proxy implementation principles, including getMapper source code analysis and MapperMethod execution process.
MyBatis Deep Dive - SqlSessionFactory, SqlSession, DAO and Mapper
In-depth explanation of MyBatis core components: SqlSessionFactory and SqlSession working principles, traditional DAO layer implementation, and MyBatis proxy development...
MyBatis Quick Start - CRUD Operations and XML Mapping Configuration
MyBatis quick start continuation covering CRUD operations, XML mapping configuration, annotation-based development, and datasource/transaction management.
MyBatis SqlSession, Executor, StatementHandler - Source Code Analysis
2k, likes: 27, favorites: 13. Configuration comes from two sources: configuration files (main config.xml, mapper.xml) and Java code annotations.
MyBatis Plugin Mechanism - PageHelper and Generic Mapper
Detailed introduction to MyBatis pagination plugin PageHelper and Generic Mapper usage, including configuration, code examples, PageInfo class usage, and Generic Mapper C...
MyBatis Quick Start - POM, Mapper, Core Files, CRUD Operations and Annotation Mapping
MyBatis quick start tutorial covering MyBatis development steps including POM dependency configuration, Mapper mapping files, SqlMapConfig core configuration file...
MyBatis Deep Dive - ORM Concepts, Mapping Relations and Quick Start
ORM stands for Object/Relation Mapping: an abbreviation for object-relation mapping.
MyBatis Plugin Mechanism - Principles, Custom Plugins, Source Code Analysis
Generally, open-source frameworks provide plugins or extension points for developers to extend on their own.
MyBatis Level 2 Cache Integration with Redis, Testing and Source Code Analysis
Currently, the level 2 cache we implement is per service. At this time, the cache is on a single server.
MyBatis Deep Dive - Level 1 Cache, Code Testing, and Source Code Analysis
Detailed introduction to MyBatis level 1 cache working principles, code testing, invalidation scenarios, and source code analysis.
MyBatis Level 2 Cache - Testing and Source Code Analysis
Detailed introduction to MyBatis level 2 cache working principles, enable configuration, code testing, and source code analysis.