예제 #1
0
  @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;
    }
  }
예제 #2
0
  @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;
  }