@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }

    if (!(obj instanceof CheckoutClp)) {
      return false;
    }

    CheckoutClp checkout = (CheckoutClp) obj;

    long primaryKey = checkout.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }
  @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;
  }