-
IN Operator in ejb ql (1 messages)
- Posted by: Aviran Mordo
- Posted on: June 09 2006 11:29 EDT
I'm trying to write a query that use the in operator: @NamedQuery(name="findAnswersByLoginIdAndQuestionList", query="select object(o) from Answers o Where o.loginId = :loginId AND o.questionId IN :questionId") but I'm getting an error: Exception Description: Syntax Recognition Problem parsing the EJBQL [select object(o) from Answers o Where o.loginId = :loginId AND o.questionId IN :questionId]. The parser returned the following [unexpected token: IN]. What am I doing wrong here?Threaded Messages (1)
- Re: IN Operator in ejb ql by Sohail Sikora on June 09 2006 16:38 EDT
-
Re: IN Operator in ejb ql[ Go to top ]
- Posted by: Sohail Sikora
- Posted on: June 09 2006 16:38 EDT
- in response to Aviran Mordo
I'm trying to write a query that use the in operator:
try o.questionId IN (:questionId)
@NamedQuery(name="findAnswersByLoginIdAndQuestionList", query="select object(o) from Answers o Where o.loginId = :loginId AND o.questionId IN :questionId")
but I'm getting an error:
Exception Description: Syntax Recognition Problem parsing the EJBQL [select object(o) from Answers o Where o.loginId = :loginId AND o.questionId IN :questionId]. The parser returned the following [unexpected token: IN].
What am I doing wrong here?