Spring Data JPA

org.springframework.data.jpa.repository.query
Annotation Type Procedure


@Target(value=METHOD)
@Retention(value=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

Optional Element Summary
 String name
          The name of the procedure in the EntityManager - defaults to "".
 String outputParameterName
          The name of the outputParameter, defaults to "".
 String procedureName
          The name of the procedure in the database, defaults to "".
 String value
          The name of the procedure in the database, defaults to "".
 

value

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

Default:
""

procedureName

public abstract String procedureName
The name of the procedure in the database, defaults to "".

Default:
""

name

public abstract String name
The name of the procedure in the EntityManager - defaults to "".

Default:
""

outputParameterName

public abstract String outputParameterName
The name of the outputParameter, defaults to "".

Default:
""

Spring Data JPA

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.