Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

import java.util.Objects;

public class CatalogBrief {

    private int catalogId;
    private String modelName;

    public CatalogBrief(int catalogId, String modelName) {
        this.catalogId = catalogId;
        this.modelName = modelName;
    }

    public int getCatalogId() {
        return catalogId;
    }

    public String getModelName() {
        return modelName;
    }

    @Override
    public String toString() {
        return "CatalogBrief{" +
                "catalogId=" + catalogId +
                ", modelName='" + modelName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CatalogBrief that = (CatalogBrief) o;
        return catalogId == that.catalogId && Objects.equals(modelName, that.modelName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(catalogId, modelName);
    }
}