criteria.addEqualTo("keyTeacher", teacherId);
criteria.addEqualTo("keyOrientationTeacher", teacherId);
    public List readAllByTeacherIdAndCareerType(Integer teacherId, CareerType careerType)            throws ExcepcaoPersistencia {        Criteria criteria = new Criteria();        criteria.addEqualTo("keyTeacher", teacherId);        if (careerType != null) {            if (careerType.equals(CareerType.PROFESSIONAL)) {                criteria.addEqualTo("ojbConcreteClass", ProfessionalCareer.class.getName());            } else if (careerType.equals(CareerType.TEACHING)) {                criteria.addEqualTo("ojbConcreteClass", TeachingCareer.class.getName());            }        }        List careers = queryList(Career.class, criteria);        return careers;    }