Skip Headers

# EJB Finders and Refresh Policy

Previous

Next

When you invoke a `findByPrimaryKey` finder, if the object exists in the cache, TopLink returns that copy. This is the default behavior, regardless of the refresh policy. To force a database query, you can configure the query to refresh by calling `refreshIdentityMapResult` method on it.

For more information, see the following:

- "Queries and the Cache"

- "Configuring Named Query Options"