Annotation Interface NamedNativeQuery
Specifies a named native SPARQL query.
Query names are scoped to the persistence unit. The NamedNativeQuery annotation can be applied to an entity or mapped superclass.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe name used to refer to the query with theEntityManager
methods that create query objects.The SPARQL query string.
-
Element Details
-
name
String nameThe name used to refer to the query with theEntityManager
methods that create query objects.- Returns:
- Name of the query
-
query
String queryThe SPARQL query string.- Returns:
- The query
-