A finder method returns references to the entity bean(s) that match an EJB QL or WebLogic QL query. The findByPrimaryKey method, which returns a reference to the entity bean, is automatically generated by WebLogic Workshop during building and is defined in both the local and remote home interface. Additional find methods can be added to the EJB's definition. A find method is not implemented in the CMP entity bean class but is defined instead using a @ejbgen:finder tag, which is interpreted by the container.
To Add a Find Method
Remember that the method name in the bean's (remote or local) home interface must have the find prefix. To return multiple references, you must use java.util.Collection. To return a unique reference, use the local or remote bean class name (as shown in the Property Editor pane), depending on whether the find method should be defined in the local or remote home interface.
How Do I: Add a Home Method to an Entity Bean?