Ejemplo n.º 1
0
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    Long entryId = (Long) attributes.get("entryId");

    if (entryId != null) {
      setEntryId(entryId);
    }

    Long groupId = (Long) attributes.get("groupId");

    if (groupId != null) {
      setGroupId(groupId);
    }

    Long companyId = (Long) attributes.get("companyId");

    if (companyId != null) {
      setCompanyId(companyId);
    }

    Long userId = (Long) attributes.get("userId");

    if (userId != null) {
      setUserId(userId);
    }

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

    if (userName != null) {
      setUserName(userName);
    }

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

    if (createDate != null) {
      setCreateDate(createDate);
    }

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

    if (modifiedDate != null) {
      setModifiedDate(modifiedDate);
    }

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

    if (fullName != null) {
      setFullName(fullName);
    }

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

    if (emailAddress != null) {
      setEmailAddress(emailAddress);
    }

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

    if (comments != null) {
      setComments(comments);
    }
  }