From ea01647200774a61931566730cc100718abb826e Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Fri, 2 Feb 2018 10:42:31 +0800 Subject: [PATCH] --- src/org/redkale/source/EntityInfo.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 {