|
@@ -16,6 +16,8 @@
|
|
|
package com.baomidou.mybatisplus.generator.config;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -25,6 +27,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
* @author hubin
|
|
|
* @since 2016-12-02
|
|
|
*/
|
|
|
+@Data
|
|
|
+@Accessors(chain = true)
|
|
|
public class GlobalConfig {
|
|
|
|
|
|
/**
|
|
@@ -67,6 +71,11 @@ public class GlobalConfig {
|
|
|
*/
|
|
|
private boolean baseResultMap = false;
|
|
|
|
|
|
+ /**
|
|
|
+ * 是否使用 java8 的时间类型
|
|
|
+ */
|
|
|
+ private boolean useJava8Time = true;
|
|
|
+
|
|
|
/**
|
|
|
* 开启 baseColumnList
|
|
|
*/
|
|
@@ -83,139 +92,4 @@ public class GlobalConfig {
|
|
|
* 指定生成的主键的ID类型
|
|
|
*/
|
|
|
private IdType idType;
|
|
|
-
|
|
|
- public GlobalConfig setIdType(IdType idType) {
|
|
|
- this.idType = idType;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public IdType getIdType() {
|
|
|
- return idType;
|
|
|
- }
|
|
|
-
|
|
|
- public String getOutputDir() {
|
|
|
- return outputDir;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setOutputDir(String outputDir) {
|
|
|
- this.outputDir = outputDir;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isFileOverride() {
|
|
|
- return fileOverride;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setFileOverride(boolean fileOverride) {
|
|
|
- this.fileOverride = fileOverride;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isOpen() {
|
|
|
- return open;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setOpen(boolean open) {
|
|
|
- this.open = open;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isEnableCache() {
|
|
|
- return enableCache;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setEnableCache(boolean enableCache) {
|
|
|
- this.enableCache = enableCache;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public String getAuthor() {
|
|
|
- return author;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setAuthor(String author) {
|
|
|
- this.author = author;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isKotlin() {
|
|
|
- return kotlin;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setKotlin(boolean kotlin) {
|
|
|
- this.kotlin = kotlin;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isActiveRecord() {
|
|
|
- return activeRecord;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setActiveRecord(boolean activeRecord) {
|
|
|
- this.activeRecord = activeRecord;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isBaseResultMap() {
|
|
|
- return baseResultMap;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setBaseResultMap(boolean baseResultMap) {
|
|
|
- this.baseResultMap = baseResultMap;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public boolean isBaseColumnList() {
|
|
|
- return baseColumnList;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setBaseColumnList(boolean baseColumnList) {
|
|
|
- this.baseColumnList = baseColumnList;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public String getMapperName() {
|
|
|
- return mapperName;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setMapperName(String mapperName) {
|
|
|
- this.mapperName = mapperName;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public String getXmlName() {
|
|
|
- return xmlName;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setXmlName(String xmlName) {
|
|
|
- this.xmlName = xmlName;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public String getServiceName() {
|
|
|
- return serviceName;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setServiceName(String serviceName) {
|
|
|
- this.serviceName = serviceName;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public String getServiceImplName() {
|
|
|
- return serviceImplName;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setServiceImplName(String serviceImplName) {
|
|
|
- this.serviceImplName = serviceImplName;
|
|
|
- return this;
|
|
|
- }
|
|
|
-
|
|
|
- public String getControllerName() {
|
|
|
- return controllerName;
|
|
|
- }
|
|
|
-
|
|
|
- public GlobalConfig setControllerName(String controllerName) {
|
|
|
- this.controllerName = controllerName;
|
|
|
- return this;
|
|
|
- }
|
|
|
}
|