a simple helper framework for mybatis.
BaseDao provider some methods:
- query
- count
- getAll
- getById
- insert
- delete
- update
Your dao can extend BaseDao, it requires a ResultMap named resultMap in each entity's mapper.xml.
mybatis-helper using interceptor to handle the page and sort sql.
The search pojo can extends DefaultPageAndSortEntity, so interceptor can add pageable and sortable function to the query.