@Override @Transactional(readOnly = true) public List<SessionExamen> findAllSessionsWithStatusAndAnneeScolaire( SessionStatus sessionStatus, ValueList anneeScolaire) { if (anneeScolaire == null) { anneeScolaire = getCurrentScholarYear(); } return sessionExamenRepos.findByAnneeScolaireIdAndStatusOrderByNomAsc( anneeScolaire.getId(), sessionStatus); }
@Override @Transactional(readOnly = true) public List<SessionExamen> findAllSessionsWithStatus(SessionStatus sessionStatus) { ValueList currentAnnee = getCurrentScholarYear(); if (currentAnnee != null) { return sessionExamenRepos.findByAnneeScolaireIdAndStatusOrderByNomAsc( currentAnnee.getId(), sessionStatus); } else { return new ArrayList<SessionExamen>(); } }