【发布时间】:2022-01-13 20:02:08
【问题描述】:
我刚开始学jooq,我有这3张桌子:
_______________
| USER_ROLES |
| userid |
| roleid |
|_______________|
____/___ __\____
| USERS | | ROLES |
|___id___| |___id__|
我需要为具有 id 的用户选择所有角色 pojos
public List<Roles> getRolesForUser(Long userId) {
List<Roles> roles = dsl.select .... where(User.id.eq(id)).fetch()....
return roles;
}
我不能正确地用谷歌搜索,所以很抱歉,我正在寻求帮助。
【问题讨论】: