Jakarta Persistence (JPA) Method

Subquery<T> select(
  Expression<T> expression
)


Specify the item that is to be returned as the subquery result. Replaces the previously specified selection, if any.
Parameters:
expression - expression specifying the item that is to be returned as the subquery result
Returns:
the modified subquery.
Since:
Jakarta Persistence (JPA) 1.0