All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.mybatis.mp.generator.template.AbstractTemplateBuilder Maven / Gradle / Ivy

package cn.mybatis.mp.generator.template;

import cn.mybatis.mp.generator.config.GeneratorConfig;
import cn.mybatis.mp.generator.database.meta.EntityInfo;

public abstract class AbstractTemplateBuilder implements ITemplateBuilder {

    protected final GeneratorConfig generatorConfig;

    protected final EntityInfo entityInfo;

    public AbstractTemplateBuilder(GeneratorConfig generatorConfig, EntityInfo entityInfo) {
        this.generatorConfig = generatorConfig;
        this.entityInfo = entityInfo;
    }

    @Override
    public boolean isFileCover() {
        return this.generatorConfig.isFileCover();
    }

    @Override
    public EntityInfo getEntityInfo() {
        return entityInfo;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy