Fast Object Database for Java - with JPA/JDO support

getRoots() - JPA AbstractQuery's method

Return the query roots. These are the roots that have been defined for the 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.
the set of query roots
JPA 2.0