From ba10363c4f9bd20e2e2b60fbdb521339b5ef5976 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Wed, 5 Jul 2023 22:53:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=AD=A5=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=88=B0=20GlobalConfig=20=E7=B1=BB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codegen/config/GlobalConfig.java | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/config/GlobalConfig.java b/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/config/GlobalConfig.java index 84830176..a7036647 100644 --- a/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/config/GlobalConfig.java +++ b/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/config/GlobalConfig.java @@ -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; }