Pessoal,
Estou com um pouco de dificuldade de realizar uma query no Hibernate com Inner Join, alguém pode me dar uma ajuda?
Segue abaixo a query:
select
tar.desc_tarefa,
reg.inicio_execucao,
proj.desc_projeto,
func.nome
from
registro reg
inner join tarefa tar on(tar.id_tarefa = reg.id_tarefa)
inner join projetos proj on(proj.id_projeto = tar.id_projeto)
inner join funcionario func on(func.id_funcionario = tar.id_funcionario)
where
reg.fim_execucao IS NULL
and
reg.desc_exec_tarefa IS NULL
order by reg.inicio_execucao