|
@@ -57,15 +57,15 @@ public abstract class AbstractLambdaWrapper<T, This extends AbstractLambdaWrappe
|
|
|
}
|
|
|
|
|
|
private String getColumn(SerializedLambda lambda) {
|
|
|
- String fieldName = StringUtils.resolveFieldName(lambda.getImplMethodName()).toUpperCase(Locale.ENGLISH);
|
|
|
- if (!initColumnMap || !columnMap.containsKey(fieldName)) {
|
|
|
+ String fieldName = StringUtils.resolveFieldName(lambda.getImplMethodName());
|
|
|
+ if (!initColumnMap || !columnMap.containsKey(fieldName.toUpperCase(Locale.ENGLISH))) {
|
|
|
String entityClassName = lambda.getImplClassName();
|
|
|
columnMap = LambdaUtils.getColumnMap(entityClassName);
|
|
|
Assert.notEmpty(columnMap, "cannot find column's cache for %s, so you cannot used %s!",
|
|
|
entityClassName, typedThis.getClass());
|
|
|
initColumnMap = true;
|
|
|
}
|
|
|
- return Optional.ofNullable(columnMap.get(fieldName))
|
|
|
+ return Optional.ofNullable(columnMap.get(fieldName.toUpperCase(Locale.ENGLISH)))
|
|
|
.orElseThrow(() -> ExceptionUtils.mpe("your property named %s cannot find the corresponding database column name!", fieldName));
|
|
|
}
|
|
|
}
|