Jakarta Persistence (JPA) Method

Set<Root<?>> getRoots()


Return the query roots. These are the roots that are defined for the CriteriaQuery<T> or Subquery<T> itself, including any subquery roots defined as a result of correlation. Returns an empty set if no roots have been defined. Modifications to the set do not affect the query.
Returns:
the set of query roots.
Since:
Jakarta Persistence (JPA) 1.0