criteria.addEqualTo("keyTeacher", teacherId);
criteria.addEqualTo("keyOrientationTeacher", teacherId);
    public List readByTeacherId(Integer teacherId) throws ExcepcaoPersistencia {        Criteria criteria = new Criteria();        criteria.addEqualTo("keyTeacher", teacherId);        List externalActivities = queryList(ExternalActivity.class, criteria);        return externalActivities;    }