diff options
author | James Moger <james.moger@gmail.com> | 2011-12-09 16:42:59 -0500 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2011-12-09 16:42:59 -0500 |
commit | 876c4e51578dfa7bd98956d2f07ae7498a70629c (patch) | |
tree | e23df1f9a29cb027c55a95e50f019e7f6d717d08 /src/com/iciql/QueryJoin.java | |
parent | 407ea16f9f8f6d3bd5135783d98b63c0e4704609 (diff) | |
download | iciql-876c4e51578dfa7bd98956d2f07ae7498a70629c.tar.gz iciql-876c4e51578dfa7bd98956d2f07ae7498a70629c.zip |
Columns mapped by name in result set instead of index. Disallow multiple
primitive bools in a model WITH explicit referencing.
Diffstat (limited to 'src/com/iciql/QueryJoin.java')
-rw-r--r-- | src/com/iciql/QueryJoin.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<T> { }
public QueryJoinCondition<T, Boolean> on(boolean x) {
+ query.getFrom().getAliasDefinition().checkMultipleBooleans();
return addPrimitive(x);
}
@@ -59,7 +60,7 @@ public class QueryJoin<T> { return addPrimitive(x);
}
- private <A> QueryJoinCondition<T, A> addPrimitive(A x) {
+ private <A> QueryJoinCondition<T, A> addPrimitive(A x) {
A alias = query.getPrimitiveAliasByValue(x);
if (alias == null) {
// this will result in an unmapped field exception
|