mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix:Db或MyBatis原生查询驼峰转换需处理不包含下划线的字段
This commit is contained in:
parent
ca152cfdd8
commit
d33e4cf8d5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user