Esempio n. 1
0
 @Override
 @Transactional(readOnly = true)
 public List<SessionExamen> findAllSessionsWithStatusAndAnneeScolaire(
     SessionStatus sessionStatus, ValueList anneeScolaire) {
   if (anneeScolaire == null) {
     anneeScolaire = getCurrentScholarYear();
   }
   return sessionExamenRepos.findByAnneeScolaireIdAndStatusOrderByNomAsc(
       anneeScolaire.getId(), sessionStatus);
 }
Esempio n. 2
0
  @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>();
    }
  }