Documentation

NamedNativeQuery
in package
implements MappingAttribute

FinalYes

Is used to specify a native SQL named query.

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

Tags
Annotation
Target

("ANNOTATION")

Table of Contents

Interfaces

MappingAttribute
A marker interface for mapping attributes.

Properties

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

Properties

$name

The name used to refer to the query with the EntityManager methods that create query objects.

public string $name

$resultSetMapping

The name of a SqlResultSetMapping, as defined in metadata.

public string $resultSetMapping

        
On this page

Search results