Rev 27474 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.model;import com.spice.profitmandi.dao.entity.fofo.PartnerType;public class MonthSaleModel {private String monthlySales;private String mtdSales;private String month;private PartnerType partnerType;public String getMonth() {return month;}public void setMonth(String month) {this.month = month;}public String getMtdSales() {return mtdSales;}public void setMtdSales(String mtdSales) {this.mtdSales = mtdSales;}public PartnerType getPartnerType() {return partnerType;}public void setPartnerType(PartnerType partnerType) {this.partnerType = partnerType;}@Overridepublic String toString() {return "MonthSaleModel [monthlySales=" + monthlySales + ", mtdSales=" + mtdSales + ", month=" + month+ ", partnerType=" + partnerType + "]";}public String getMonthlySales() {return monthlySales;}public void setMonthlySales(String monthlySales) {this.monthlySales = monthlySales;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((month == null) ? 0 : month.hashCode());result = prime * result + ((monthlySales == null) ? 0 : monthlySales.hashCode());result = prime * result + ((mtdSales == null) ? 0 : mtdSales.hashCode());result = prime * result + ((partnerType == null) ? 0 : partnerType.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;MonthSaleModel other = (MonthSaleModel) obj;if (month == null) {if (other.month != null)return false;} else if (!month.equals(other.month))return false;if (monthlySales == null) {if (other.monthlySales != null)return false;} else if (!monthlySales.equals(other.monthlySales))return false;if (mtdSales == null) {if (other.mtdSales != null)return false;} else if (!mtdSales.equals(other.mtdSales))return false;if (partnerType != other.partnerType)return false;return true;}}