Query Hints

Query hint names are defined in com.cmobilecom.jpa.Constants.

Flush Before Query

	public static final String FLUSH_BEFORE_QUERY = "CmobilecomJPA.query.flushBeforeQuery";
Specify whether to flush entities before executing query. Its value is true or false. default is true. It should be set to false to improve performance if there are changes in persistence context that will not affect query results.

Fetch Max Depth

	public static final String FETCH_MAX_DEPTH = "CmobilecomJPA.query.fetchMaxDepth";
The max depth of fetches from explicit fetch and entity graph boundary. The depth of those in the boundary is 0. Default value is 2.