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

    clone.setCheckoutId(getCheckoutId());
    clone.setCompanyId(getCompanyId());
    clone.setUserId(getUserId());
    clone.setUserName(getUserName());
    clone.setCreateDate(getCreateDate());
    clone.setModifiedDate(getModifiedDate());
    clone.setAssetId(getAssetId());
    clone.setCheckOutDate(getCheckOutDate());
    clone.setExpectedCheckInDate(getExpectedCheckInDate());
    clone.setActualCheckInDate(getActualCheckInDate());

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

    if (checkoutId != null) {
      setCheckoutId(checkoutId);
    }

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

    if (assetId != null) {
      setAssetId(assetId);
    }

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

    if (checkOutDate != null) {
      setCheckOutDate(checkOutDate);
    }

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

    if (expectedCheckInDate != null) {
      setExpectedCheckInDate(expectedCheckInDate);
    }

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

    if (actualCheckInDate != null) {
      setActualCheckInDate(actualCheckInDate);
    }

    _entityCacheEnabled = GetterUtil.getBoolean("entityCacheEnabled");
    _finderCacheEnabled = GetterUtil.getBoolean("finderCacheEnabled");
  }