I have the following query in jOOQ:
factory()
.select()
.from(PERSON)
.join(ENDUSER).on(ENDUSER.PERSON_FK.equal(PERSON.ID))
.where(ENDUSER.ID.equal(userId))
.fetchOne();
This query returns to me a Record with all columns from PERSON and ENDUSER, but I only want the columns from PERSON (that's why I put .from(PERSON)
and not .from(PERSON, ENDUSER)
).
I know it doesn't matter that much but I don't want unnecessary fields to be returned.