예제 #1
0
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    Long id = (Long) attributes.get("id");

    if (id != null) {
      setId(id);
    }

    String title = (String) attributes.get("title");

    if (title != null) {
      setTitle(title);
    }

    String description = (String) attributes.get("description");

    if (description != null) {
      setDescription(description);
    }

    String logo = (String) attributes.get("logo");

    if (logo != null) {
      setLogo(logo);
    }

    Date creationDate = (Date) attributes.get("creationDate");

    if (creationDate != null) {
      setCreationDate(creationDate);
    }
  }
예제 #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;
  }