JPA Annotation Attribute
in jakarta.persistence.NamedQuery

Class<?> resultClass default void.class


(Optional) The class of each query result. The result class may be overridden by explicitly passing a class object to 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[].
Since:
JPA 1.0