@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof LFAchievementClp)) { return false; } LFAchievementClp lfAchievement = (LFAchievementClp) obj; long primaryKey = lfAchievement.getPrimaryKey(); if (getPrimaryKey() == primaryKey) { return true; } else { return false; } }
@Override public Object clone() { LFAchievementClp clone = new LFAchievementClp(); clone.setId(getId()); clone.setTitle(getTitle()); clone.setDescription(getDescription()); clone.setLogo(getLogo()); clone.setCreationDate(getCreationDate()); return clone; }