if(summary.getKeyShift() == shiftID)
if(summary.getShift().getIdInternal().equals(shiftID))
    public List readByShift(final Integer executionCourseID, final Integer shiftID) throws ExcepcaoPersistencia {                List summaries = readByExecutionCourseShifts(executionCourseID);                Iterator iter = summaries.iterator();        List summariesAux = new ArrayList();                while(iter.hasNext()){            ISummary summary = (ISummary) iter.next();            if(summary.getKeyShift() == shiftID)                summariesAux.add(summary);        }                       return summariesAux;    }