JPA Annotation Attribute
in jakarta.persistence.NamedNativeQuery

Class<?> resultClass default void.class


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 createNamedQuery().
Since:
JPA 1.0