From d33e4cf8d5d04a937b20af3d7ef033e78fa9cb0d Mon Sep 17 00:00:00 2001 From: tangxin-li <617054137@qq.com> Date: Mon, 18 Sep 2023 18:41:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:Db=E6=88=96MyBatis=E5=8E=9F=E7=94=9F?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=A9=BC=E5=B3=B0=E8=BD=AC=E6=8D=A2=E9=9C=80?= =?UTF-8?q?=E5=A4=84=E7=90=86=E4=B8=8D=E5=8C=85=E5=90=AB=E4=B8=8B=E5=88=92?= =?UTF-8?q?=E7=BA=BF=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mybatisflex/core/mybatis/FlexWrapperFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/FlexWrapperFactory.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/FlexWrapperFactory.java index 94562d25..d5b34eff 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/FlexWrapperFactory.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/FlexWrapperFactory.java @@ -80,7 +80,7 @@ public class FlexWrapperFactory implements ObjectWrapperFactory { @Override public String findProperty(String name, boolean useCamelCaseMapping) { - return useCamelCaseMapping && name.contains("_") ? StringUtil.underlineToCamel(name) : name; + return useCamelCaseMapping && ( Character.isUpperCase(name.charAt(0)) || name.contains("_")) ? StringUtil.underlineToCamel(name) : name; } }