JPA Methodin javax.persistence.criteria.CommonAbstractCriteriaSubquery<U> subquery( Class<U> type) Create a subquery of the query. Parameters:type - the subquery result typeReturn: subquery Since:JPA 2.1