I need to do the equivalent of this in JOOQ.
SELECT
name,
'companyType' AS resultType
FROM company
UNION ALL
SELECT
name,
'userType' AS resultType
FROM "user";
I have figured out how to do unionall in JOOQ fine but I cannot figure out how to select a constant value for results in either select of the union.