@Override
  public void setModelAttributes(Map<String, Object> attributes) {
    Long valueId = (Long) attributes.get("valueId");

    if (valueId != null) {
      setValueId(valueId);
    }

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

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

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

    if (tableId != null) {
      setTableId(tableId);
    }

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

    if (columnId != null) {
      setColumnId(columnId);
    }

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

    if (rowId != null) {
      setRowId(rowId);
    }

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

    if (classNameId != null) {
      setClassNameId(classNameId);
    }

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

    if (classPK != null) {
      setClassPK(classPK);
    }

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

    if (data != null) {
      setData(data);
    }
  }
 public void setPrimaryKey(long primaryKey) {
   setValueId(primaryKey);
 }
 public void setPrimaryKey(long pk) {
   setValueId(pk);
 }