Salve galera! Estou precisando de um help. Não estou conseguindo transformar o sql abaixo em hql:
select c.id, c.nome from Cliente c left join FuncionarioCliente fc on c.id=fc.cliente_id
where c.empresa_id=1
and c.status='ATIVO'
and fc.fim is null
and c.id not in(1,2,3);
Esse sql busca todos os Clientes que não existem em FuncionarioCliente.