Skip to content

Can typehandler be separated from mybatis? #3304

Open
@Ai-010

Description

@Ai-010

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));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions