public class Jpa21Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends javax.persistence.Query> |
tryConfigureFetchGraph(javax.persistence.EntityManager em,
T query,
JpaEntityGraph entityGraph)
Adds a JPA 2.1 fetch-graph or load-graph hint to the given
Query if running under JPA 2.1. |
static javax.persistence.EntityGraph<?> |
tryGetFetchGraph(javax.persistence.EntityManager em,
JpaEntityGraph jpaEntityGraph)
Adds a JPA 2.1 fetch-graph or load-graph hint to the given
Query if running under JPA 2.1. |
public static <T extends javax.persistence.Query> T tryConfigureFetchGraph(javax.persistence.EntityManager em,
T query,
JpaEntityGraph entityGraph)
Query if running under JPA 2.1.em - must not be null.query - must not be null.entityGraph - can be null.2.1 Specfication 3.7.4 - Use of Entity Graphs in find and query operations P.117public static javax.persistence.EntityGraph<?> tryGetFetchGraph(javax.persistence.EntityManager em,
JpaEntityGraph jpaEntityGraph)
Query if running under JPA 2.1.em - must not be null.jpaEntityGraph - must not be null.EntityGraph described by the given entityGraph.2.1 Specfication 3.7.4 - Use of Entity Graphs in find and query operations P.117Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.