query.bind(executionCourse.getNome());
query.bind(executionCourse.getSigla());
    public List readAnnouncementsByExecutionCourse(IDisciplinaExecucao executionCourse) throws ExcepcaoPersistencia{        try {            String oqlQuery = "select announcement from " + Announcement.class.getName();			oqlQuery += " where site.executionCourse.nome = $1";			oqlQuery += " and site.executionCourse.executionPeriod.name = $2";			oqlQuery += " and site.executionCourse.executionPeriod.executionYear.year = $3";						query.create(oqlQuery);			query.bind(executionCourse.getNome());			query.bind(executionCourse.getExecutionPeriod().getName());			query.bind(executionCourse.getExecutionPeriod().getExecutionYear().getYear());			            List result = (List) query.execute();            lockRead(result);                        return result;        } catch (QueryException ex) {            throw new ExcepcaoPersistencia(ExcepcaoPersistencia.QUERY, ex);        }    }