Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
supercolor007 opened this issue Dec 20, 2018 · 1 comment

Comments

@supercolor007
Copy link

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

@lugavin
Copy link

lugavin commented Nov 25, 2020

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants