Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.smartdukaan.cron.scheduled;

import java.util.Objects;

public class AddItemModel {
    private int itemId;
    private int catalogItemId;
    private int tp;
    private int sellingPrice;
    private int mop;
    private int mrp;

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public int getCatalogItemId() {
        return catalogItemId;
    }

    public void setCatalogItemId(int catalogItemId) {
        this.catalogItemId = catalogItemId;
    }

    public int getTp() {
        return tp;
    }

    public void setTp(int tp) {
        this.tp = tp;
    }

    public int getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(int sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public int getMop() {
        return mop;
    }

    public void setMop(int mop) {
        this.mop = mop;
    }

    public int getMrp() {
        return mrp;
    }

    public void setMrp(int mrp) {
        this.mrp = mrp;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AddItemModel that = (AddItemModel) o;
        return itemId == that.itemId && catalogItemId == that.catalogItemId && tp == that.tp && sellingPrice == that.sellingPrice && mop == that.mop && mrp == that.mrp;
    }

    @Override
    public int hashCode() {
        return Objects.hash(itemId, catalogItemId, tp, sellingPrice, mop, mrp);
    }

    @Override
    public String toString() {
        return "AddItemModel{" +
                "itemId=" + itemId +
                ", catalogItemId=" + catalogItemId +
                ", tp=" + tp +
                ", sellingPrice=" + sellingPrice +
                ", mop=" + mop +
                ", mrp=" + mrp +
                '}';
    }
}