On Mon, 2012-05-14 at 09:53 +0200, Lukas Eder wrote:
> Hello Murray,
>
> > Now I'm doing this:
> > step.leftOuterJoin(tableName + " AS " + aliasName).on(condition);
>
> Yes, that is the simplest way
>
> > But I would like to use a Table<Record> instead of that table name
> > string, via the new Factory.tableByName() method.
>
> You can use as() on any org.jooq.Table. Write:
> tableByName(tableName).as(aliasName)
So would this have the intended effect?
step.leftOuterJoin(Factory.tableByName("sometable").as("somealias")).on(condition);
?
--
Murray Cumming
[email protected]
www.murrayc.com
www.openismus.com