This content has been marked as final.
Show 2 replies
-
1. jboss ql question
wdfink May 10, 2011 9:49 AM (in response to hugbert)1 of 1 people found this helpfulI suppose you are using EJB2.1 CMP because of the query syntax, right?
A sub-select is not possible in this case, you have to use EJB3 (JPA-QL) for this.
What you can do if you have a relation is something like
SELECT OBJECT(o) FROM WorkflowEntry o, IN (o.currentSteps) step WHERE o.state = ?1 AND step.owner = ?2 AND step.status = ?3
You must have a CMR in this case!
-
2. jboss ql question
hugbert May 10, 2011 9:57 AM (in response to wdfink)Wolf-Dieter,
Thank you, that helped me.
I don't have CMR and yes, this is EJB2.1 CMP.
I think about a change to EJB3.
Thanks again
Hubert