On Wednesday, February 13, 2013 2:49:13 PM UTC+1, digulla wrote: > Why can't I create a union of queries created with selectFrom()? > >> >> The aforementioned design issue keeps you from doing it. Does it work >> when calling getQuery() on query and step? >> > > Let me try ... no, I can't cast from Select<> to SelectFinalStep (which > contains the method). > > I would have to call getDelegate() without the case but I can't because > it's an internal method. > > I found that SimpleSelectFinalStep also contains the method and I can cast to that. But unionAll() returns Union, so the next join fails because Union can't be cast to SimpleSelectFinalStep, either. And I can't check for this case because Union is an internal API.
I think I'll write a tool which will makes all fields and classes in a Java project "public" in the source. Maybe as a Maven plugin? Regards, A. Digulla -- 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.
