softwareloop / mybatis-generator-lombok-plugin

A plugin for MyBatis Generator to use Lombok annotations instead of getters and setters
Apache License 2.0
146 stars 106 forks source link

this plugin can auto import org.apache.ibatis.annotations.Mapper and @Mapper #12

Open supercolor007 opened 5 years ago

supercolor007 commented 5 years ago

but I want use tk.mapper. so I have to delete the org.apache.ibatis.annotations.Mapper and @Mapper

lugavin commented 3 years ago
    @Override
    public boolean clientGenerated(
            Interface interfaze,
            TopLevelClass topLevelClass,
            IntrospectedTable introspectedTable
    ) {
        interfaze.addImportedType(new FullyQualifiedJavaType(
                "org.apache.ibatis.annotations.Mapper"));
        interfaze.addAnnotation("@Mapper");
        return true;
    }

This is hard-coded.