0

Tnis 查询必须是返回列表!!!!我想知道如何为 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用一个技能对象替换。

4

1 回答 1

0

这不行吗?

from Candidate as candidate
  left outer join candidate.skills as skill
    where skill.id = 1
于 2013-08-09T12:43:20.460 回答