erreur de syntaxe dans une requete sql
Bonjour,
je travaille avec spring et hibernate, j'ai une requête avec une erreur qui est signalé au niveau and ('LSA' = ?4
Code:
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") |
l'éditeur m'indique l'erreur
'(', <expression>, FUNCTION or identifier expected, got '('
pourriez vous m'aider svp