Bonjour,

J'ai la requête HQL suivante :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
select distinct cand from Candidate cand  left join fetch cand.contactByPersonalContactId as PC  left join fetch cand.rhscreensForCandidateId as rhScreen  left join fetch cand.spokenlanguages as spokenlanguages left join  cand.personnelSkillnames as S0  where S0.name = 'J2EE'  and cand.firstName like 'kmiha%' and cand.status = 'Salarié' and  (cand.isDeleted =false) and  (PC.isDeleted = false or PC = null) order by cand.lastName ASC;
Cette requête me retourne l'erreur suivante :

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fetch cand.contactByPersonalContactId as PC left join fetch cand.rhscreensForCa' at line 1
mysql>


Merci de m'aider à résoudre cette erreur.

Je suis prêt à répondre à vos questions.

Amicalement
jockhip12