criteria.addEqualTo("", teacher.getIdInternal()); criteria.addEqualTo("", degreeType);
criteria.addEqualTo("keyTeacher", teacher.getIdInternal()); criteria.addEqualTo( "executionCourse.associatedCurricularCourses.degreeCurricularPlan.degree.tipoCurso", degreeType);
    public List readByTeacherAndTypeOfDegree(ITeacher teacher, TipoCurso degreeType) throws ExcepcaoPersistencia    {        Criteria criteria = new Criteria();        criteria.addEqualTo("", teacher.getIdInternal());        criteria.addEqualTo("", degreeType);        return queryList(Professorship.class, criteria, true);    }