criteria.addEqualTo("day", day); criteria.addEqualTo("beginning", beginning);
criteria.addEqualTo("dayDate", day.getTime()); criteria.addEqualTo("beginningDate", beginning.getTime());
    public List readBy(Calendar day, Calendar beginning) throws ExcepcaoPersistencia {        Criteria criteria = new Criteria();        criteria.addEqualTo("day", day);        criteria.addEqualTo("beginning", beginning);        return queryList(Exam.class, criteria);    }