This commit is contained in:
Redkale
2018-02-02 10:42:31 +08:00
parent 1f8faa8afd
commit ea01647200

View File

@@ -294,7 +294,13 @@ public final class EntityInfo<T> {
this.constructorAttributes = new Attribute[this.constructorParameters.length];
List<Attribute<T, Serializable>> unconstructorAttrs = new ArrayList<>();
for (Attribute<T, Serializable> 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 {