Skip Headers

# Default Finders

Previous

Next

For each finder method defined on the home interface of an entity bean, whose name matches `findBy<``CMP-FIELD-NAME``>` where `<``CMP-FIELD-NAME``>` is the name of a persistent field on the bean, TopLink generates a finder implementation including a TopLink query that uses the TopLink expressions framework. If the return type is a single bean type, TopLink creates a `ReadObjectQuery`; if the return type is a `Collection`, TopLink creates a `ReadAllQuery`.

Although you must still define the finder in the entity home, you do not need to declare the finder in the `ejb-jar.xml` file.

For more information, see "Creating a Finder".