public void setPrimaryKey(long primaryKey) {
   setUserGroupId(primaryKey);
 }
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    String uuid = (String) attributes.get("uuid");

    if (uuid != null) {
      setUuid(uuid);
    }

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

    if (userGroupId != null) {
      setUserGroupId(userGroupId);
    }

    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 parentUserGroupId = (Long) attributes.get("parentUserGroupId");

    if (parentUserGroupId != null) {
      setParentUserGroupId(parentUserGroupId);
    }

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

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

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

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

    Boolean addedByLDAPImport = (Boolean) attributes.get("addedByLDAPImport");

    if (addedByLDAPImport != null) {
      setAddedByLDAPImport(addedByLDAPImport);
    }
  }