crit.addEqualTo("curricularCourse.degreeCurricularPlanKey", degreeCurricularPlanId);
crit.addEqualTo("curricularCourse.keyDegreeCurricularPlan", degreeCurricularPlanId);
    public List readCurricularCourseScopesByDegreeCurricularPlanInExecutionYear(            Integer degreeCurricularPlanId, Date beginDate, Date endDate)            throws ExcepcaoPersistencia {        Criteria crit = new Criteria();        crit.addEqualTo("curricularCourse.degreeCurricularPlanKey", degreeCurricularPlanId);        crit.addLessThan("begin", endDate);        Criteria crit3 = new Criteria();        crit3.addIsNull("end");        Criteria crit4 = new Criteria();        crit4.addGreaterThan("end", beginDate);        crit3.addOrCriteria(crit4);        crit.addAndCriteria(crit3);        List result = queryList(CurricularCourseScope.class, crit);        return result;    }