Hello,Actually, the question was: why can't I use joins when using selectFrom statement?
At first, I thought that "selectFrom(SOURCE).fetchInto(TARGET)" meant "insert into TARGET (...) select .. from SOURCE".
--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 jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for this explanation,
I thought the problem was the selected record type was lost after joining other tables. When I say "lost", I mean from type safety (java generics) point of view.
I knew that select wasn't the last part in logical order, but most of remaining parts (distinct/order/offset) do not change the record type, the exception is probably union here. From my Java developer point of view, getting select (=projection) and fetch (=row mapping) close is interesting because both are related: when there is a lot of code between select an fetch, the code gets less readable.
I'll try to stop arguing about this since I am not relevant ;-) .