public SeasonalAthlete getMostRecentSeasonalAthlete() { return Query.from(SeasonalAthlete.class) .where("athlete = ? && year <= ?", this, StatsUtils.determineSeason(new Date())) .sortDescending("year") .first(); }
public SeasonalAthlete getCurrentSeasonalAthlete() { return Query.from(SeasonalAthlete.class) .where("athlete = ? && year = ?", this, StatsUtils.determineSeason(new Date())) .first(); }