Originally posted by gayle craig:
P 397
"The two select methods ... doesn't say WHAT the methods will return... but we'll tell the container that one will return a Collection of Movies and one a Collection of Strings."
Where/how do we tell the container that? Does the container just know based on the EJB-QL that we write? Or from something else?
Yes, we tell the container in the EJBQL...
Remember,
1. we use *OBJECT(M)* in the Select statement to return a component interface type.
2. we use *m.xxxx* in the select statement to return a particular data type(like a
string).
Hope this answers your question.