#745 - ElasticSearch - internally translate where().id.eq(42) ... to where().setId(42)

This commit is contained in:
Robin Bygrave committed 2016-06-20 22:29:38 +12:00
1 parent d12e55c20b
commit c793d6652f
18 files changed
+153 -31

No files matched your search

@@ -236,6 +236,16 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
return beanDescriptor;
}
@Override
public void checkIdEqualTo() {
if (id == null && whereExpressions != null) {
id = whereExpressions.idEqualTo(beanDescriptor.getIdName());
if (id != null) {
whereExpressions = null;
}
}
}
@Override
public boolean isAutoTunable() {
return beanDescriptor.isAutoTunable();