In org.hibernate.engine.query.spi.EntityGraphQueryHint#toFromElements, a fromElement is added to explicitFetches if fromElement.getRole() != null. Should that be changed to fromElement.getRole() != null && fromElement.isFetch()?