String oqlQuery = "select turno from " + ShiftStudent.class.getName(); oqlQuery += " where turno.tipo = $1";
String oqlQuery = "select shift from " + ShiftStudent.class.getName(); oqlQuery += " where shift.tipo = $1";
	public ITurno readByStudentIdAndShiftType(		Integer id,		TipoAula shiftType,		String nameExecutionCourse)		throws ExcepcaoPersistencia {		try {			String oqlQuery = "select turno from " + ShiftStudent.class.getName();			oqlQuery += " where turno.tipo = $1";			oqlQuery				+= " and turno.disciplinaExecucao.licenciaturaExecucao.nome = $2";			oqlQuery += " and aluno.number = $3";			query.create(oqlQuery);			query.bind(shiftType);			query.bind(nameExecutionCourse);			query.bind(id);			List result = (List) query.execute();			lockRead(result);			if (result != null && !(result.isEmpty()))				return ((ITurnoAluno) result.get(0)).getShift();		} catch (QueryException ex) {			throw new ExcepcaoPersistencia(ExcepcaoPersistencia.QUERY, ex);		}		return null;	}