jOOQ can I fetch a join of two tables into the respective POJOs
Using nested collections With more recent versions of jOOQ, you’ll typically use a set of ORDBMS features, including: nested collections using MULTISET nested records and nested table records ad-hoc converters You’ll write something like this, to produce jOOQ types: Result<Record2<UserRecord, Result<Record1<RoleRecord>>>> result = dsl.select( USER, multiset( selectFrom(USER_ROLE.role()) .where(USER_ROLE.USER_ID.eq(USER.ID)) )) .from(USER) .where(USER.U_EMAIL.equal(email)) .fetch(); Or, by using … Read more