getRoots() - JPA AbstractQuery's method
Method
javax.persistence.criteria.AbstractQuery
Set<Root<?>> getRoots()
CriteriaQuery
or
Subquery
itself, including any subquery roots defined as a result of correlation. Returns empty set if no roots have been defined. Modifications to the set do not affect the query.
- Returns:
- the set of query roots
- Since:
- JPA 2.0