Rev 34163 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import java.util.Objects;public class HidAllocationModel {int fofoId;int catalogId;String modelNumber;String brand;int availableStock;int last2DaysSoldQtySum;int hidAllocation;int purchaseLimit;int currentSnapshotStock;int orderedStock;public HidAllocationModel(int fofoId, int catalogId, String modelNumber, String brand, int availableStock, int last2DaysSoldQtySum, int hidAllocation) {this.fofoId = fofoId;this.catalogId = catalogId;this.modelNumber = modelNumber;this.brand = brand;this.availableStock = availableStock;this.last2DaysSoldQtySum = last2DaysSoldQtySum;this.hidAllocation = hidAllocation;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public int getCatalogId() {return catalogId;}public void setCatalogId(int catalogId) {this.catalogId = catalogId;}public String getModelNumber() {return modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public int getAvailableStock() {return availableStock;}public void setAvailableStock(int availableStock) {this.availableStock = availableStock;}public int getLast2DaysSoldQtySum() {return last2DaysSoldQtySum;}public void setLast2DaysSoldQtySum(int last2DaysSoldQtySum) {this.last2DaysSoldQtySum = last2DaysSoldQtySum;}public int getHidAllocation() {return hidAllocation;}public void setHidAllocation(int hidAllocation) {this.hidAllocation = hidAllocation;}public int getPurchaseLimit() {return purchaseLimit;}public void setPurchaseLimit(int purchaseLimit) {this.purchaseLimit = purchaseLimit;}public int getCurrentSnapshotStock() {return currentSnapshotStock;}public void setCurrentSnapshotStock(int currentSnapshotStock) {this.currentSnapshotStock = currentSnapshotStock;}public int getOrderedStock() {return orderedStock;}public void setOrderedStock(int orderedStock) {this.orderedStock = orderedStock;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;HidAllocationModel that = (HidAllocationModel) o;return fofoId == that.fofoId && catalogId == that.catalogId && availableStock == that.availableStock && last2DaysSoldQtySum == that.last2DaysSoldQtySum && hidAllocation == that.hidAllocation && purchaseLimit == that.purchaseLimit && currentSnapshotStock == that.currentSnapshotStock && orderedStock == that.orderedStock && Objects.equals(modelNumber, that.modelNumber) && Objects.equals(brand, that.brand);}@Overridepublic int hashCode() {return Objects.hash(fofoId, catalogId, modelNumber, brand, availableStock, last2DaysSoldQtySum, hidAllocation, purchaseLimit, currentSnapshotStock, orderedStock);}@Overridepublic String toString() {return "HidAllocationModel{" +"fofoId=" + fofoId +", catalogId=" + catalogId +", modelNumber='" + modelNumber + '\'' +", brand='" + brand + '\'' +", availableStock=" + availableStock +", last2DaysSoldQtySum=" + last2DaysSoldQtySum +", hidAllocation=" + hidAllocation +", purchaseLimit=" + purchaseLimit +", currentSnapshotStock=" + currentSnapshotStock +", orderedStock=" + orderedStock +'}';}}