Description
I have already open sourced a framework called "mybatis-mp" based on mybatis. My entity class annotations need to rely on mybatis' typehandler, and I hope the annotation module of "mybatis-mp" can be made smaller and less dependent, but the typehandler property depends on mybatis dependencies. I hope mybatis can extract the typehandler from mybatis and make it a small module. My open source address is:
https://github.com/mybatis-mp/mybatis-mp
@documented
@retention(RetentionPolicy.RUNTIME)
@target(ElementType.FIELD)
public @interface TableField {
Class> typeHandler() default UnknownTypeHandler.class;
......
}
Mybatis mp is currently very user-friendly:
Pager<SysUser> pager= QueryChain.of(sysUserMapper) .like(SysUser::getUserName,"abc") .paging(Pager.of(1));