@Override public boolean equals(Object obj) { if (obj == null) { return false; } LearningActivityTryClp learningActivityTry = null; try { learningActivityTry = (LearningActivityTryClp) obj; } catch (ClassCastException cce) { return false; } long primaryKey = learningActivityTry.getPrimaryKey(); if (getPrimaryKey() == primaryKey) { return true; } else { return false; } }
@Override public Object clone() { LearningActivityTryClp clone = new LearningActivityTryClp(); clone.setUuid(getUuid()); clone.setLatId(getLatId()); clone.setActId(getActId()); clone.setUserId(getUserId()); clone.setStartDate(getStartDate()); clone.setResult(getResult()); clone.setEndDate(getEndDate()); clone.setTryData(getTryData()); clone.setTryResultData(getTryResultData()); clone.setComments(getComments()); return clone; }