Jakarta Persistence (JPA) Method

Class<?> resultClass


(Optional) The class of each query result. The result class may be overridden by explicitly passing a class object to EntityManager.createNamedQuery. If the result class of a named query is not specified, the persistence implementation is entitled to default the result class to Object or Object[].
Default:
void/class
Since:
Jakarta Persistence (JPA) 1.0