@Repository
public interface PlayerRepository extends JpaRepository<Player, Long> {
@Override
@EntityGraph(attributePaths = {"team", "position"}) // Can't fetch mutliple "bags" (lists) with EntityGraph
List<Player> findAll();
@Override
@EntityGraph(attributePaths = {"team", "position", "teamsPlayedFor", "receivedAwards", "receivedAwards.award"}) // Can fetch multiple "bags" when returning only 1 result
Optional<Player> findById(Long id);
}