Oracle GlassFish Server 3.0.1 Application Development 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.