Spring Data JPA

org.springframework.data.jpa.repository
Annotation Type EntityGraph


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface EntityGraph

Annotation to configure the JPA 2.1 EntityGraphs that should be used on repository methods.

Since:
1.6
Author:
Thomas Darimont

Required Element Summary
 String value
          The name of the EntityGraph to use.
 
Optional Element Summary
 EntityGraph.EntityGraphType type
          The EntityGraph.EntityGraphType of the EntityGraph to use, defaults to EntityGraph.EntityGraphType.FETCH.
 

Element Detail

value

public abstract String value
The name of the EntityGraph to use.

Returns:

type

public abstract EntityGraph.EntityGraphType type
The EntityGraph.EntityGraphType of the EntityGraph to use, defaults to EntityGraph.EntityGraphType.FETCH.

Returns:
Default:
org.springframework.data.jpa.repository.EntityGraph.EntityGraphType.FETCH

Spring Data JPA

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