View as "text/plain" | Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import java.util.List;import com.spice.profitmandi.common.model.PriceModel;import com.spice.profitmandi.dao.entity.catalog.CustomerOfferItem;public class CustomPriceModel {private int itemId;private PriceModel price;private List<CustomerOfferItem> cois;public CustomPriceModel() {super();// TODO Auto-generated constructor stub}public CustomPriceModel(int itemId, PriceModel price) {super();this.itemId = itemId;this.price = price;}public int getItemId() {return itemId;}public void setItemId(int itemId) {this.itemId = itemId;}public PriceModel getPrice() {return price;}public void setPrice(PriceModel price) {this.price = price;}public List<CustomerOfferItem> getCois() {return cois;}public void setCois(List<CustomerOfferItem> cois) {this.cois = cois;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + itemId;result = prime * result + ((price == null) ? 0 : price.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CustomPriceModel other = (CustomPriceModel) obj;if (itemId != other.itemId)return false;if (price == null) {if (other.price != null)return false;} else if (!price.equals(other.price))return false;return true;}@Overridepublic String toString() {return "CustomPriceModel [itemId=" + itemId + ", price=" + price + ", cois=" + cois + "]";}}