Jakarta Persistence (JPA) Method

Class<?> resultClass


The class of each query result. If a result set mapping is specified, the specified result class must agree with the type inferred from the result set mapping. If a resultClass is not explicitly specified, then it is inferred from the result set mapping, if any, or defaults to Object or Object[]. The query result class may be overridden by explicitly passing a class object to EntityManager.createNamedQuery.
Default:
void/class
Since:
Jakarta Persistence (JPA) 1.0