How can I use EJB-QL if I have a finder method that takes a list of ids as parameter. For eg., if I have to get the objects whose ids are in the list of ids passed to the finder method, how can I do it through EJB-QL? [ April 29, 2004: Message edited by: Chris Mathews ]
EJBQL only works on a static number of parameters so you can't really do what you want in a standard way without restorting to Java code. However, many vendor offer extensions to allow dynamic query creation in CMP for just these types of problems, check your Application Server's documentation.
In case you got around to looking at the EJB-QL BNF, you should notice that it doesn't allow you to do something like "SELECT OBJECT(o) FROM Something AS o WHERE o.value IN ?1" where ?1 is defined as a Collection (or other container type). A home method may be what you need to accomplish this.