diff --git a/src/org/redkale/source/EntityInfo.java b/src/org/redkale/source/EntityInfo.java index 75c912a22..40025525b 100644 --- a/src/org/redkale/source/EntityInfo.java +++ b/src/org/redkale/source/EntityInfo.java @@ -294,7 +294,13 @@ public final class EntityInfo { this.constructorAttributes = new Attribute[this.constructorParameters.length]; List> unconstructorAttrs = new ArrayList<>(); for (Attribute attr : queryAttributes) { - int pos = Arrays.binarySearch(this.constructorParameters, attr.field()); + int pos = -1; + for (int i = 0; i < this.constructorParameters.length; i++) { + if (attr.field().equals(this.constructorParameters[i])) { + pos = i; + break; + } + } if (pos >= 0) { this.constructorAttributes[pos] = attr; } else {