/** * Creates an {@link JpaEntityGraph}. * * @param entityGraph must not be {@literal null}. * @param nameFallback must not be {@literal null} or empty. */ public JpaEntityGraph(EntityGraph entityGraph, String nameFallback) { this(StringUtils.hasText(entityGraph.value()) ? entityGraph.value() : nameFallback, entityGraph.type(), entityGraph .attributePaths()); }
/** * Creates an {@link JpaEntityGraph}. * * @param entityGraph must not be {@literal null}. * @param nameFallback must not be {@literal null} or empty. */ public JpaEntityGraph(EntityGraph entityGraph, String nameFallback) { this(StringUtils.hasText(entityGraph.value()) ? entityGraph.value() : nameFallback, entityGraph.type(), entityGraph .attributePaths()); }