Home » JPA » Queries » Criteria From Elements

Criteria Query From Elements

The interfaces in this group are in use for setting a criteria query FROM clause.

Criteria Query Variables

The FROM clause in JPA queries (as in SQL) defines the query variables. Query variables are represented in criteria queries by descendant interfaces of the From interface:

Range variables (bound by an entity class) are represented by the Root subinterface:

Join variables (bound by an attribute of a preceding variable in the FROM clause) are represented by the Join subinterface and its descendant interfaces:

See the FROM in Criteria Queries section for more details and examples.

Join Fetch Elements

Join Fetch is managed in criteria queries by the following interfaces:

See the FROM in Criteria Queries section for more details and an example.