Bonjour,
je travaille avec spring et hibernate, j'ai une requête avec une erreur qui est signalé au niveau and ('LSA' = ?4
l'éditeur m'indique l'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 @Query("select r from RequestEntity r join r.role role join role.applicationHasEnvironment ahe join StatusEntity stat on r.currentStatusId = stat.id where role.active = true and ahe.id.applicationId = ?1 and ahe.id.environmentId = ?2 and ( 'LSA' = ?4 or ( 'LSA' <> ?4 and (ahe.owner.accountAD = ?3 or ()))) and stat.name in ?5 order by role.name")
'(', <expression>, FUNCTION or identifier expected, got '('
pourriez vous m'aider svp
Partager