Annotation Interface NamedNativeQuery


@Target(TYPE) @Retention(RUNTIME) public @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 Elements
    Modifier and Type
    Required Element
    Description
    The name used to refer to the query with the EntityManager methods that create query objects.
    The SPARQL query string.
  • Element Details

    • name

      String name
      The name used to refer to the query with the EntityManager methods that create query objects.
      Returns:
      Name of the query
    • query

      String query
      The SPARQL query string.
      Returns:
      The query