Hi Brian,

I agree that working with Strings for column names is much less clean. So
far, I haven't found a useful way to let the Java compiler "detect" field
name and type from a Select object, though. I don't think it's possible as
some compiler plugin would probably have to modify the Java AST to know
that there is an ID <http://b.id/> member in the following construct:

select(B.ID <http://b.id/>).from(B)


As in

(select(B.ID <http://b.id/>).from(B)).ID // works
(select(B.ID <http://b.id/>).from(B)).XY // compilation error


I'll pay a beer to anyone who knows the solution for this :-)

Cheers
Lukas

2013/11/19 Brian Busse <[email protected]>

> Thank you Lukas for your fast answer.
>
> It wasn´t very clear to me that i should append ".asTable()" to the
> derived table.
> Now everything works fine but it looks not very clean, because I have to
> work with strings instead of generated constants.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to