ProductProcessDto.java

package com.mycim.valueobject.prp;

/**
 * @author Qiansheng.Wang
 * @since 2020-10-27
 */
public class ProductProcessDto {

    private Long productRrn;

    private String productId;

    private Long processRrn;

    private String processId;

    private String defaultFlag;

    private Integer availableProcessVersion;

    /**
     * @return the productRrn
     */
    public Long getProductRrn() {
        return productRrn;
    }

    /**
     * @param productRrn the productRrn to set
     */
    public void setProductRrn(Long productRrn) {
        this.productRrn = productRrn;
    }

    /**
     * @return the productId
     */
    public String getProductId() {
        return productId;
    }

    /**
     * @param productId the productId to set
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * @return the processRrn
     */
    public Long getProcessRrn() {
        return processRrn;
    }

    /**
     * @param processRrn the processRrn to set
     */
    public void setProcessRrn(Long processRrn) {
        this.processRrn = processRrn;
    }

    /**
     * @return the processId
     */
    public String getProcessId() {
        return processId;
    }

    /**
     * @param processId the processId to set
     */
    public void setProcessId(String processId) {
        this.processId = processId;
    }

    /**
     * @return the defaultFlag
     */
    public String getDefaultFlag() {
        return defaultFlag;
    }

    /**
     * @param defaultFlag the defaultFlag to set
     */
    public void setDefaultFlag(String defaultFlag) {
        this.defaultFlag = defaultFlag;
    }

    /**
     * @return the availableProcessVersion
     */
    public Integer getAvailableProcessVersion() {
        return availableProcessVersion;
    }

    /**
     * @param availableProcessVersion the availableProcessVersion to set
     */
    public void setAvailableProcessVersion(Integer availableProcessVersion) {
        this.availableProcessVersion = availableProcessVersion;
    }

    @java.lang.Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((processRrn == null) ? 0 : processRrn.hashCode());
        result = prime * result + ((productRrn == null) ? 0 : productRrn.hashCode());
        return result;
    }

    @java.lang.Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        ProductProcessDto other = (ProductProcessDto) obj;
        if (processRrn == null) {
            if (other.processRrn != null) {
                return false;
            }
        } else if (!processRrn.equals(other.processRrn)) {
            return false;
        }
        if (productRrn == null) {
            if (other.productRrn != null) {
                return false;
            }
        } else if (!productRrn.equals(other.productRrn)) {
            return false;
        }
        return true;
    }

    @java.lang.Override
    public String toString() {
        return "ProductProcessDTO [productRrn=" + productRrn + ", productId=" + productId + ", processRrn=" +
                processRrn + ", processId=" + processId + ", defaultFlag=" + defaultFlag +
                ", availableProcessVersion=" + availableProcessVersion + "]";
    }

}