@Override
  public Object clone() {
    DefinitionClp clone = new DefinitionClp();

    clone.setDefinitionId(getDefinitionId());
    clone.setGroupId(getGroupId());
    clone.setCompanyId(getCompanyId());
    clone.setUserId(getUserId());
    clone.setUserName(getUserName());
    clone.setCreateDate(getCreateDate());
    clone.setModifiedDate(getModifiedDate());
    clone.setTypeId(getTypeId());
    clone.setManufacturer(getManufacturer());
    clone.setModel(getModel());
    clone.setOrderDate(getOrderDate());
    clone.setQuantity(getQuantity());
    clone.setPrice(getPrice());

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

    if (definitionId != null) {
      setDefinitionId(definitionId);
    }

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

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

    if (typeId != null) {
      setTypeId(typeId);
    }

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

    if (manufacturer != null) {
      setManufacturer(manufacturer);
    }

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

    if (model != null) {
      setModel(model);
    }

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

    if (orderDate != null) {
      setOrderDate(orderDate);
    }

    Integer quantity = (Integer) attributes.get("quantity");

    if (quantity != null) {
      setQuantity(quantity);
    }

    Double price = (Double) attributes.get("price");

    if (price != null) {
      setPrice(price);
    }
  }
 public void setPrimaryKey(long primaryKey) {
   setDefinitionId(primaryKey);
 }