#125 - ENH: Add support for query returning a List of single Attribute type

This commit is contained in:
Robin Bygrave
2016-08-04 16:41:50 +12:00
parent 9a5cb242ce
commit 1be30f1671
25 changed files with 716 additions and 218 deletions
@@ -260,7 +260,7 @@ public class SqlTreeBuilder {
// Optional many property for lazy loading query
BeanPropertyAssocMany<?> lazyLoadMany = (query == null) ? null : query.getLazyLoadMany();
boolean withId = !rawNoId && !subQuery && (query == null || !query.isDistinct());
boolean withId = !rawNoId && !subQuery && (query == null || query.isWithId());
return new SqlTreeNodeRoot(desc, props, myList, withId, includeJoin, lazyLoadMany, SpiQuery.TemporalMode.of(query), disableLazyLoad);
} else if (prop instanceof BeanPropertyAssocMany<?>) {