mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1870 - Whether DtoMeta.findproperty needs to add is prefix
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package io.ebeaninternal.server.dto;
|
||||
|
||||
import io.ebean.util.StringHelper;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static io.ebean.util.StringHelper.replaceString;
|
||||
|
||||
/**
|
||||
* Holds property and constructor meta data for a given DTO bean type.
|
||||
*
|
||||
@@ -123,9 +123,11 @@ class DtoMeta {
|
||||
|
||||
String upperLabel = label.toUpperCase();
|
||||
DtoMetaProperty property = propMap.get(upperLabel);
|
||||
if (property == null && upperLabel.startsWith("IS_")) {
|
||||
property = propMap.get(upperLabel.substring(3));
|
||||
}
|
||||
if (property == null) {
|
||||
upperLabel = StringHelper.replaceString(upperLabel, "_", "");
|
||||
property = propMap.get(upperLabel);
|
||||
property = propMap.get(replaceString(upperLabel, "_", ""));
|
||||
}
|
||||
return property;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user