/**
* Copyright (c) 2011-2020, hubin (jobob@qq.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.baomidou.mybatisplus.generator.config;
/**
* <p>
* 全局配置
* </p>
*
* @author hubin
* @since 2016-12-02
*/
public class GlobalConfig {
/**
* 生成文件的输出目录【默认 D 盘根目录】
*/
private String outputDir = "D://";
/**
* 是否覆盖已有文件
*/
private boolean fileOverride = false;
/**
* 是否打开输出目录
*/
private boolean open = true;
/**
* 是否在xml中添加二级缓存配置
*/
private boolean enableCache = true;
/**
* 开发人员
*/
private String author;
/**
* 开启 ActiveRecord 模式
*/
private boolean activeRecord = true;
/**
* 开启 BaseResultMap
*/
private boolean baseResultMap = false;
/**
* 开启 baseColumnList
*/
private boolean baseColumnList = false;
/**
* 各层文件名称方式,例如: %Action 生成 UserAction
*/
private String mapperName;
private String xmlName;
private String serviceName;
private String serviceImplName;
private String controllerName;
public String getOutputDir() {
return outputDir;
}
public void setOutputDir(String outputDir) {
this.outputDir = outputDir;
}
public boolean isFileOverride() {
return fileOverride;
}
public void setFileOverride(boolean fileOverride) {
this.fileOverride = fileOverride;
}
public boolean isOpen() {
return open;
}
public void setOpen(boolean open) {
this.open = open;
}
public boolean isEnableCache() {
return enableCache;
}
public void setEnableCache(boolean enableCache) {
this.enableCache = enableCache;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public boolean isActiveRecord() {
return activeRecord;
}
public void setActiveRecord(boolean activeRecord) {
this.activeRecord = activeRecord;
}
public boolean isBaseResultMap() {
return baseResultMap;
}
public void setBaseResultMap(boolean baseResultMap) {
this.baseResultMap = baseResultMap;
}
public boolean isBaseColumnList() {
return baseColumnList;
}
public void setBaseColumnList(boolean baseColumnList) {
this.baseColumnList = baseColumnList;
}
public String getMapperName() {
return mapperName;
}
public void setMapperName(String mapperName) {
this.mapperName = mapperName;
}
public String getXmlName() {
return xmlName;
}
public void setXmlName(String xmlName) {
this.xmlName = xmlName;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getServiceImplName() {
return serviceImplName;
}
public void setServiceImplName(String serviceImplName) {
this.serviceImplName = serviceImplName;
}
public String getControllerName() {
return controllerName;
}
public void setControllerName(String controllerName) {
this.controllerName = controllerName;
}
}