View as "text/plain" | Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;public class InStockCatalogItemModel {private int catalogItemId;private String brand;private String modelName;private String modelNumber;private long qty;private long amount;public InStockCatalogItemModel(int catalogItemId, String brand, String modelName, String modelNumber, long qty,long amount) {super();this.catalogItemId = catalogItemId;this.brand = brand;this.modelName = modelName;this.modelNumber = modelNumber;this.qty = qty;this.amount = amount;}public int getCatalogItemId() {return catalogItemId;}public void setCatalogItemId(int catalogItemId) {this.catalogItemId = catalogItemId;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public String getModelName() {return modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public String getModelNumber() {return modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public long getQty() {return qty;}public void setQty(long qty) {this.qty = qty;}public long getAmount() {return amount;}public void setAmount(long amount) {this.amount = amount;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + (int) (amount ^ (amount >>> 32));result = prime * result + ((brand == null) ? 0 : brand.hashCode());result = prime * result + catalogItemId;result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());result = prime * result + ((modelNumber == null) ? 0 : modelNumber.hashCode());result = prime * result + (int) (qty ^ (qty >>> 32));return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;InStockCatalogItemModel other = (InStockCatalogItemModel) obj;if (amount != other.amount)return false;if (brand == null) {if (other.brand != null)return false;} else if (!brand.equals(other.brand))return false;if (catalogItemId != other.catalogItemId)return false;if (modelName == null) {if (other.modelName != null)return false;} else if (!modelName.equals(other.modelName))return false;if (modelNumber == null) {if (other.modelNumber != null)return false;} else if (!modelNumber.equals(other.modelNumber))return false;if (qty != other.qty)return false;return true;}@Overridepublic String toString() {return "InStockCatalogItemModel [catalogItemId=" + catalogItemId + ", brand=" + brand + ", modelName="+ modelName + ", modelNumber=" + modelNumber + ", qty=" + qty + ", amount=" + amount + "]";}}