criteria.addEqualTo("endDate", endDate);
criteria.addEqualTo("end", endDate.getTime());
    public ICurricularCourseScope readCurricularCourseScopeByCurricularCourseAndCurricularSemesterAndBranchAndEndDate(			Integer curricularCourseId, Integer curricularSemesterId, Integer branchId,			Calendar endDate) throws ExcepcaoPersistencia {        Criteria criteria = new Criteria();        criteria.addEqualTo("curricularCourseKey", curricularCourseId);        criteria.addEqualTo("curricularSemesterKey", curricularSemesterId);        criteria.addEqualTo("branchKey", branchId);        if (endDate == null) {            criteria.addIsNull("endDate");        } else {            criteria.addEqualTo("endDate", endDate);        }        return (ICurricularCourseScope) queryObject(CurricularCourseScope.class, criteria);    }