Annotation Interface Procedure


@Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface Procedure
Annotation to declare JPA 2.1 stored procedure mappings directly on repository methods.
Since:
1.6
Author:
Thomas Darimont, Oliver Gierke, Christoph Strobl, Gabriel Basilio
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the procedure in the EntityManager - defaults to "".
    The name of the outputParameter, defaults to "".
    The name of the procedure in the database, defaults to "".
    boolean
    Whether the procedure returns a Ref Cursor from the database - defaults to false.
    The name of the procedure in the database, defaults to "".
  • Element Details

    • value

      String value
      The name of the procedure in the database, defaults to "". Short form for procedureName().
      Default:
      ""
    • procedureName

      String procedureName
      The name of the procedure in the database, defaults to "".
      Default:
      ""
    • name

      String name
      The name of the procedure in the EntityManager - defaults to "".
      Default:
      ""
    • outputParameterName

      String outputParameterName
      The name of the outputParameter, defaults to "".
      Default:
      ""
    • refCursor

      boolean refCursor
      Whether the procedure returns a Ref Cursor from the database - defaults to false.
      Default:
      false