public class JpaEntityGraph extends Object
EntityGraphs.| Constructor and Description |
|---|
JpaEntityGraph(EntityGraph entityGraph,
String nameFallback)
Creates an
JpaEntityGraph. |
JpaEntityGraph(String name,
EntityGraph.EntityGraphType type,
String[] attributePaths)
Creates an
JpaEntityGraph with the given name, EntityGraph.EntityGraphType and attribute paths. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAttributePaths()
Returns the attribute node names to be used for this
JpaEntityGraph. |
String |
getName()
Returns the name of the
EntityGraph configuration to use. |
EntityGraph.EntityGraphType |
getType()
Returns the
EntityGraph.EntityGraphType of the EntityGraph to use. |
boolean |
isAdHocEntityGraph()
Return true if this
JpaEntityGraph needs to be generated on-the-fly. |
String |
toString() |
public JpaEntityGraph(EntityGraph entityGraph, String nameFallback)
JpaEntityGraph.entityGraph - must not be null.nameFallback - must not be null or empty.public JpaEntityGraph(String name, EntityGraph.EntityGraphType type, @Nullable String[] attributePaths)
JpaEntityGraph with the given name, EntityGraph.EntityGraphType and attribute paths.name - must not be null or empty.type - must not be null.attributePaths - may be null.public String getName()
EntityGraph configuration to use.public EntityGraph.EntityGraphType getType()
EntityGraph.EntityGraphType of the EntityGraph to use.public List<String> getAttributePaths()
JpaEntityGraph.public boolean isAdHocEntityGraph()
JpaEntityGraph needs to be generated on-the-fly.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.