Bonjour,
J'ai une erreur dans ma reqûete HQL (c'est une requête externalisé que je place dans mon fichier de mapping)
Voici ma requête HQL :
Pourtant elle ne fonctionne pas !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <query name="proc.filiere.par.dist.unique"> select distinct (p.codeFiliere) from Procedure as p join bean.Filiere as fil where p.codeFiliere = fil.codeFiliere and codeDist = ? </query>
Voici un extrait de ma trace :
Je ne comprends pas pourquoi il y a marquer "bean.Filiere -> null" ??
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 DEBUG [http-8080-Processor25] (QueryTranslatorImpl.java:252) - --- HQL AST --- \-[QUERY] 'query' +-[SELECT_FROM] 'SELECT_FROM' | +-[FROM] 'from' | | +-[RANGE] 'RANGE' | | | +-[DOT] '.' | | | | +-[IDENT] 'bean' | | | | \-[IDENT] 'Procedure' | | | \-[ALIAS] 'p' | | \-[JOIN] 'join' | | +-[DOT] '.' | | | +-[IDENT] 'bean' | | | \-[IDENT] 'Filiere' | | \-[ALIAS] 'fil' | \-[SELECT] 'select' | +-[DISTINCT] 'distinct' | \-[DOT] '.' | +-[IDENT] 'p' | \-[IDENT] 'codeFiliere' \-[WHERE] 'where' \-[AND] 'and' +-[EQ] '=' | +-[DOT] '.' | | +-[IDENT] 'p' | | \-[IDENT] 'codeFiliere' | \-[DOT] '.' | +-[IDENT] 'fil' | \-[IDENT] 'codeFiliere' \-[EQ] '=' +-[IDENT] 'codeDist' \-[PARAM] '?' DEBUG [http-8080-Processor25] (ErrorCounter.java:68) - throwQueryException() : no errors DEBUG [http-8080-Processor25] (HqlSqlBaseWalker.java:111) - select << begin [level=1, statement=select] DEBUG [http-8080-Processor25] (FromElement.java:104) - FromClause{level=1} : bean.Procedure (p) -> procedure0_ DEBUG [http-8080-Processor25] (LiteralProcessor.java:121) - setSQLValue() bean.Filiere -> null DEBUG [http-8080-Processor25] (FromReferenceNode.java:51) - Resolved : bean.Filiere -> null
Quelqu'un voit une erreur dans mon code ?
Merci
Partager