Jakarta Persistence (JPA) Method

List<EntityGraph<? super T>> getEntityGraphs(
  Class<T> entityClass
)


Return all named EntityGraph<T>s that are defined for the given entity class type.
Parameters:
entityClass - entity class
Returns:
list of all entity graphs defined for the entity.
Throws:
IllegalArgumentException - if the class is not an entity.
Since:
Jakarta Persistence (JPA) 2.1