From 876c4e51578dfa7bd98956d2f07ae7498a70629c Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 9 Dec 2011 16:42:59 -0500 Subject: Columns mapped by name in result set instead of index. Disallow multiple primitive bools in a model WITH explicit referencing. --- src/com/iciql/QueryJoin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/iciql/QueryJoin.java') diff --git a/src/com/iciql/QueryJoin.java b/src/com/iciql/QueryJoin.java index 652d937..6d0484e 100644 --- a/src/com/iciql/QueryJoin.java +++ b/src/com/iciql/QueryJoin.java @@ -32,6 +32,7 @@ public class QueryJoin { } public QueryJoinCondition on(boolean x) { + query.getFrom().getAliasDefinition().checkMultipleBooleans(); return addPrimitive(x); } @@ -59,7 +60,7 @@ public class QueryJoin { return addPrimitive(x); } - private QueryJoinCondition addPrimitive(A x) { + private QueryJoinCondition addPrimitive(A x) { A alias = query.getPrimitiveAliasByValue(x); if (alias == null) { // this will result in an unmapped field exception -- cgit v1.2.3