diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/iciql/Query.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/iciql/Query.java b/src/com/iciql/Query.java index aa0ce4b..9aefe27 100644 --- a/src/com/iciql/Query.java +++ b/src/com/iciql/Query.java @@ -845,6 +845,15 @@ public class Query<T> { return new QueryJoin(this, join);
}
+ @SuppressWarnings({ "unchecked", "rawtypes" })
+ public <A> QueryJoin<T> leftJoin(A alias) {
+ TableDefinition<T> def = (TableDefinition<T>) db.define(alias.getClass());
+ SelectTable<T> join = new SelectTable(db, this, alias, true);
+ def.initSelectObject(join, alias, aliasMap);
+ joins.add(join);
+ return new QueryJoin(this, join);
+ }
+
Db getDb() {
return db;
}
|