Fix: query table entity or sql entity has no id (#1082)

When query table entity or sql entity,include NamedQuery which modified via code and RawSqlQuery which modified via code.
This commit is contained in:
Yuan Xuegui
2017-08-24 22:18:46 +12:00
committed by Rob Bygrave
parent 57231c80a8
commit b3a3b19d5d
2 changed files with 8 additions and 0 deletions
@@ -1107,6 +1107,9 @@ public class DefaultExpressionList<T> implements SpiExpressionList<T> {
}
public Object idEqualTo(String idName) {
if (idName == null) {
return null;
}
if (list.size() == 1) {
return list.get(0).getIdEqualTo(idName);
}