mybatis: MyBatis on Spring Boot 4.2.0 - annotation and XML mappers, result maps, dynamic SQL, PageHelper, @MybatisTest, seven real transcripts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b3obqqePfZ9m2Jk5Ub
This commit is contained in:
Ankur Mhatre
2026-11-26 18:16:47 +05:30
co-authored by Claude Sonnet 5.5
parent fc8bc933d5
commit 8d8c28e2e5
35 changed files with 1332 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
## beans in the @MybatisTest slice
mapper beans: [categoryMapper, productMapper, productXmlMapper]
ProductService (a @Service) present: false
SqlSessionFactory present: true
mapped statements registered: [com.ankurm.mybatis.mapper.ProductXmlMapper.search]
map-underscore-to-camel-case (from application.properties): true
plugins (interceptors) registered: []
DataSource URL: jdbc:h2:mem:<generated>
## RowBounds(offset=10, limit=5) with plain MyBatis: no LIMIT in the SQL, MyBatis skips rows on the client
==> Preparing: SELECT p.id, p.name, p.price, p.stock, p.active, p.category_id FROM product p ORDER BY p.id
==> Parameters:
ids returned: [11, 12, 13, 14, 15]