Sun GlassFish Enterprise Server v3 Prelude Developer's Guide

Query Hints

Query hints are additional, implementation-specific configuration settings. You can use hints in your queries in the following format:

setHint("hint-name", hint-value)

For example:

Customer customer = (Customer)entityMgr.
     setParameter("SSN", "123-12-1234").
     setHint("eclipselink.refresh", true).

For more information about the query hints available with the default provider, see How to Use EclipseLink JPA Query Hints.