CMP EJB Finder Method for Primary Key Collection
posted 12 years ago
Does anyone know how to do the following for a CMP Entity Bean. I want to set up a Finder method with EJB QL that accepts a collection of primary keys (say Account #s) and returns a collection of Entity Bean references. I am inexperienced with CMP and all the examples I see of CMP Finder methods involve passing in single parameters and retrieving a collection of references based on that. Like pass in a Credit Limit and return all Account references with a Credit Limit less than that, while I would like to pass in say 10 Account #s (in a Collection not as 10 method parameters) and receive a Collection of 10 Account references. Can anyone help me out with this?