For some reason I can't find the straight ahead way to do this:
List<MyRecord> records =
dslContext
.select()
.from(MYRECORD)
.join(MYRECORD_DETAIL).on(MYRECORD.ID.eq(MYRECORD_DETAIL.MYRECORD_ID))
.where(MYRECORD_DETAIL.DATA.in("foo", "bar"))
.fetch();
I can use selectFrom() but then I can't fluently do the join to the 1:N
detail table. I can do a regular "select" with a "join" as above but then I
can't figure out the correct fetch method to use to return a list of
MyRecord types. In this case MyRecord is simply the updatable record class
generated by JOOQ for MYRECORD.
TIA
--
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/d/optout.