@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) @Documented public @interface EntityGraph
EntityGraphs that should be used on repository methods.
Since 1.9 we support the definition of dynamic EntityGraphs by allowing to customize the fetch-graph via
via attributePaths() ad-hoc fetch-graph configuration.attributePaths() are specified then we ignore the entity-graph name value()
and treat this EntityGraph as dynamic., Thomas Darimont| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
attributePaths
The paths of attributes of this
EntityGraph to use, empty by default. |
EntityGraph.EntityGraphType |
type
The
Type of the EntityGraph to use, defaults to Type#FETCH. |
String |
value
The name of the EntityGraph to use.
|
public abstract String value
JpaQueryMethod.getNamedQueryName() as the value.public abstract EntityGraph.EntityGraphType type
Type of the EntityGraph to use, defaults to Type#FETCH.public abstract String[] attributePaths
EntityGraph to use, empty by default.
You can refer to direct properties of the entity or nested properties via a property.nestedProperty.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.