@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) @Documented public @interface EntityGraph
EntityGraph
s that should be used on repository methods.
Since 1.9 we support the definition of dynamic EntityGraph
s 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 DarimontModifier and Type | Optional Element and Description |
---|---|
String[] |
attributePaths
The paths of attributes of this
EntityGraph to use, empty by default. |
EntityGraph.EntityGraphType |
type
The
EntityGraph.EntityGraphType of the EntityGraph to use, defaults to EntityGraph.EntityGraphType.FETCH . |
String |
value
The name of the EntityGraph to use.
|
public abstract String value
JpaQueryMethod.getNamedQueryName()
as the
value.public abstract EntityGraph.EntityGraphType type
EntityGraph.EntityGraphType
of the EntityGraph to use, defaults to EntityGraph.EntityGraphType.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–2019 Pivotal Software, Inc.. All rights reserved.