mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
fix: EntityConfig 链式调用错误。
This commit is contained in:
parent
590cb3ce15
commit
5e1b5cd587
@ -30,6 +30,7 @@ import java.util.function.Function;
|
|||||||
public class EntityConfig implements Serializable {
|
public class EntityConfig implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -6790274333595436008L;
|
private static final long serialVersionUID = -6790274333595436008L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代码生成目录,当未配置时,使用 PackageConfig 的配置
|
* 代码生成目录,当未配置时,使用 PackageConfig 的配置
|
||||||
*/
|
*/
|
||||||
@ -93,7 +94,6 @@ public class EntityConfig implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private int jdkVersion;
|
private int jdkVersion;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当开启这个配置后,Entity 会生成两个类,比如 Account 表会生成 Account.java 以及 AccountBase.java
|
* 当开启这个配置后,Entity 会生成两个类,比如 Account 表会生成 Account.java 以及 AccountBase.java
|
||||||
* 这样的好处是,自动生成的 getter setter 字段等都在 Base 类里,而开发者可以在 Account.java 中添加自己的业务代码
|
* 这样的好处是,自动生成的 getter setter 字段等都在 Base 类里,而开发者可以在 Account.java 中添加自己的业务代码
|
||||||
@ -125,8 +125,9 @@ public class EntityConfig implements Serializable {
|
|||||||
return sourceDir;
|
return sourceDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSourceDir(String sourceDir) {
|
public EntityConfig setSourceDir(String sourceDir) {
|
||||||
this.sourceDir = sourceDir;
|
this.sourceDir = sourceDir;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -186,8 +187,9 @@ public class EntityConfig implements Serializable {
|
|||||||
return superClassFactory;
|
return superClassFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSuperClassFactory(Function<Table, Class<?>> superClassFactory) {
|
public EntityConfig setSuperClassFactory(Function<Table, Class<?>> superClassFactory) {
|
||||||
this.superClassFactory = superClassFactory;
|
this.superClassFactory = superClassFactory;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -316,33 +318,36 @@ public class EntityConfig implements Serializable {
|
|||||||
return withBaseClassEnable;
|
return withBaseClassEnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWithBaseClassEnable(boolean withBaseClassEnable) {
|
public EntityConfig setWithBaseClassEnable(boolean withBaseClassEnable) {
|
||||||
this.withBaseClassEnable = withBaseClassEnable;
|
this.withBaseClassEnable = withBaseClassEnable;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getWithBaseClassSuffix() {
|
public String getWithBaseClassSuffix() {
|
||||||
return withBaseClassSuffix;
|
return withBaseClassSuffix;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWithBaseClassSuffix(String withBaseClassSuffix) {
|
public EntityConfig setWithBaseClassSuffix(String withBaseClassSuffix) {
|
||||||
this.withBaseClassSuffix = withBaseClassSuffix;
|
this.withBaseClassSuffix = withBaseClassSuffix;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getWithBasePackage() {
|
public String getWithBasePackage() {
|
||||||
return withBasePackage;
|
return withBasePackage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWithBasePackage(String withBasePackage) {
|
public EntityConfig setWithBasePackage(String withBasePackage) {
|
||||||
this.withBasePackage = withBasePackage;
|
this.withBasePackage = withBasePackage;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isColumnCommentEnable() {
|
public boolean isColumnCommentEnable() {
|
||||||
return columnCommentEnable;
|
return columnCommentEnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setColumnCommentEnable(boolean columnCommentEnable) {
|
public EntityConfig setColumnCommentEnable(boolean columnCommentEnable) {
|
||||||
this.columnCommentEnable = columnCommentEnable;
|
this.columnCommentEnable = columnCommentEnable;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAlwaysGenColumnAnnotation() {
|
public boolean isAlwaysGenColumnAnnotation() {
|
||||||
@ -358,6 +363,7 @@ public class EntityConfig implements Serializable {
|
|||||||
|
|
||||||
FOX("FOX"),
|
FOX("FOX"),
|
||||||
DOC("DOC");
|
DOC("DOC");
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
SwaggerVersion(String name) {
|
SwaggerVersion(String name) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user