public class Jpa21Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
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. |
static Map<String,Object> |
tryGetFetchGraphHints(javax.persistence.EntityManager em,
JpaEntityGraph entityGraph)
Returns a
Map with hints for a JPA 2.1 fetch-graph or load-graph if running under JPA 2.1. |
public static Map<String,Object> tryGetFetchGraphHints(javax.persistence.EntityManager em, JpaEntityGraph entityGraph)
Map with hints for a JPA 2.1 fetch-graph or load-graph if running under JPA 2.1.em - must not be nullquery - must not be nullentityGraph - can be nullMap with the hints or an empty Map if no hints were foundpublic 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-2015–2015 Pivotal Software, Inc.. All rights reserved.