criteria.addEqualTo("keyTeacher", teacherInstitutionWorkTime.getTeacher().getIdInternal());
criteria.addEqualTo("keyOrientationTeacher", teacherInstitutionWorkTime.getTeacher().getIdInternal());
    public TeacherInstitutionWorkTime readByUnique(            TeacherInstitutionWorkTime teacherInstitutionWorkTime) throws ExcepcaoPersistencia {        Criteria criteria = new Criteria();        criteria.addEqualTo("startTime", teacherInstitutionWorkTime.getStartTime());        criteria.addEqualTo("keyTeacher", teacherInstitutionWorkTime.getTeacher().getIdInternal());        criteria.addEqualTo("keyExecutionPeriod", teacherInstitutionWorkTime.getExecutionPeriod()                .getIdInternal());        criteria.addEqualTo("weekDay", teacherInstitutionWorkTime.getWeekDay());        return (TeacherInstitutionWorkTime) queryObject(TeacherInstitutionWorkTime.class, criteria);    }