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

    if (mvccVersion != null) {
      setMvccVersion(mvccVersion);
    }

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

    if (teamId != null) {
      setTeamId(teamId);
    }

    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);
    }

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

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

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

    if (name != null) {
      setName(name);
    }

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

    if (description != null) {
      setDescription(description);
    }
  }
Esempio n. 2
0
 @Override
 public void setPrimaryKey(long primaryKey) {
   setTeamId(primaryKey);
 }