public class Jpa21Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
tryGetFetchGraphHints(javax.persistence.EntityManager em,
JpaEntityGraph entityGraph,
Class<?> entityType)
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, @Nullable JpaEntityGraph entityGraph, Class<?> entityType)
Map with hints for a JPA 2.1 fetch-graph or load-graph if running under JPA 2.1.em - must not be null.entityGraph - can be null.entityType - must not be null.Map with the hints or an empty Map if no hints were found.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.