Tnis查询必须返回List !!!! 我想知道如何为HQL重写这个SQL查询:
select candidate.* from candidate inner join candidate_skill on candidate.id = candidate_skill.candidate_id inner join skill on candidate_skill.skill_id = skill.id
where skill.id = 1
我想获得一个候选对象(而不是candidate.*
),我想用技能对象替换skill.id = 1
。
答案 0 :(得分:0)
这不起作用吗?
from Candidate as candidate
left outer join candidate.skills as skill
where skill.id = 1