class NamedNativeQuery implements Annotation (View source)

Is used to specify a native SQL named query.

The NamedNativeQuery annotation can be applied to an entity or mapped superclass.


string $name The name used to refer to the query with the EntityManager methods that create query objects.
string $query The SQL query string.
string $resultClass The class of the result.
string $resultSetMapping The name of a SqlResultSetMapping, as defined in metadata.