@Override
    public boolean clientGenerated(Interface interfaze, TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
        //获取实体类
        FullyQualifiedJavaType entityType = new FullyQualifiedJavaType(introspectedTable.getBaseRecordType());
        //import接口
        for (String mapper : mappers) {
            interfaze.addImportedType(new FullyQualifiedJavaType(mapper));
            interfaze.addSuperInterface(new FullyQualifiedJavaType(mapper + "<" + entityType.getShortName() + ">"));
        }
        //import实体类
        interfaze.addImportedType(entityType);
        return true;
    }
@ Override public boolean clientGenerated ( Interface interfaze , TopLevelClass topLevelClass , IntrospectedTable introspectedTable ) { FullyQualifiedJavaType entityType = new FullyQualifiedJavaType ( introspectedTable . getBaseRecordType ( ) ) ; for ( String mapper : mappers ) { interfaze . addImportedType ( new FullyQualifiedJavaType ( mapper ) ) ; interfaze . addSuperInterface ( new FullyQualifiedJavaType ( mapper + "<" + entityType . getShortName ( ) + ">" ) ) ; } interfaze . addImportedType ( entityType ) ; return true ; }
生成的Mapper接口

@param interfaze
@param topLevelClass
@param introspectedTable
@return