I just started learn jooq, i got these 3 tables:
_______________
| USER_ROLES |
| userid |
| roleid |
|_______________|
____/___ __\____
| USERS | | ROLES |
|___id___| |___id__|
I need to select all roles pojos for user with id
public List<Roles> getRolesForUser(Long userId) {
List<Roles> roles = dsl.select .... where(User.id.eq(id)).fetch()....
return roles;
}
i cant google it properly so i am sorry and i am asking help.