Pagination plugin for MyBatis that pages any single-table or multi-table query
open sourceMITfree
PageHelper is a pagination plugin for MyBatis 3.1.0 and later: call it before a query and it rewrites the SQL for physical paging in the database's own dialect, for single-table and complex multi-table queries alike. It detects dialects for MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, DB2, SQLite, H2, Informix and others. PageHelper 6 needs JDK 8 or later.
Problems it solves
- I need to paginate MyBatis queries without writing LIMIT and COUNT SQL by hand for each database
- My Java app's MyBatis mappers need paging that works on both MySQL and Oracle
- I want page numbers and total counts for MyBatis list queries
Features
- Physical pagination for any single-table or multi-table MyBatis query
- Automatic dialects for MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, DB2, SQLite, H2 and more
- Works with MyBatis 3.1.0 and later; PageHelper 6 needs JDK 8+, PageHelper 5 JDK 6+
Limitations
Alternatives
The same job
These do what PageHelper does.
- MyBatis-Plus Enhancement toolkit for MyBatis that cuts boilerplate in Java data access
- MyBatis SQL mapper persistence framework for Java
