jyothi,
The
Ejb spec 1.1 defines single object finders and Multi Object finders. This is defined in page 114 of the ejb specification. The return type of an finder method defined in the Home interface is a remote reference of the entity bean and that of a multi finder is a Collection/Enumeration of remote references.
Now the return type of a single finder in the Ejb is the Primary Key and that of a multi finder is a Collection/Enumeration of the Primary Key.
code for single finders from ejb spec
code from ejb spec for multi finders
Hope this helps.
------------------
Mahindrakar
IBM Application Server Forum Moderator
Consultant - Zensar Technologies.
SCJP2 & SCJEA (Part I)