mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
feat: 同步设置到 GlobalConfig 类。
This commit is contained in:
parent
bbea7f433d
commit
ba10363c4f
@ -945,6 +945,20 @@ public class GlobalConfig {
|
||||
getMapperConfig().setSupperClass(mapperSupperClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see MapperConfig#isMapperAnnotation()
|
||||
*/
|
||||
public boolean isMapperAnnotation() {
|
||||
return getMapperConfig().isMapperAnnotation();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see MapperConfig#setMapperAnnotation(boolean)
|
||||
*/
|
||||
public void setMapperAnnotation(boolean mapperAnnotation) {
|
||||
getMapperConfig().setMapperAnnotation(mapperAnnotation);
|
||||
}
|
||||
|
||||
public boolean isServiceGenerateEnable() {
|
||||
return serviceGenerateEnable;
|
||||
}
|
||||
@ -1231,6 +1245,34 @@ public class GlobalConfig {
|
||||
getTableDefConfig().setClassSuffix(tableDefClassSuffix);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see TableDefConfig#getPropertiesNameStyle()
|
||||
*/
|
||||
public TableDefConfig.NameStyle getPropertiesNameStyle() {
|
||||
return getTableDefConfig().getPropertiesNameStyle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see TableDefConfig#setPropertiesNameStyle(TableDefConfig.NameStyle)
|
||||
*/
|
||||
public void setPropertiesNameStyle(TableDefConfig.NameStyle propertiesNameStyle) {
|
||||
getTableDefConfig().setPropertiesNameStyle(propertiesNameStyle);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see TableDefConfig#getInstanceSuffix()
|
||||
*/
|
||||
public String getInstanceSuffix() {
|
||||
return getTableDefConfig().getInstanceSuffix();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see TableDefConfig#setInstanceSuffix(String)
|
||||
*/
|
||||
public void setInstanceSuffix(String instanceSuffix) {
|
||||
getTableDefConfig().setInstanceSuffix(instanceSuffix);
|
||||
}
|
||||
|
||||
public boolean isMapperXmlGenerateEnable() {
|
||||
return mapperXmlGenerateEnable;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user