Subversion Repositories SmartDukaan

Rev

Rev 27474 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
27474 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
4
 
5
public class MonthSaleModel {
6
 
7
	private String monthlySales;
8
	private String mtdSales;
9
	private String month;
28493 tejbeer 10
	private PartnerType partnerType;
27474 tejbeer 11
 
12
 
13
	public String getMonth() {
14
		return month;
15
	}
16
 
17
	public void setMonth(String month) {
18
		this.month = month;
19
	}
20
 
21
 
28493 tejbeer 22
 
27474 tejbeer 23
 
24
	public String getMtdSales() {
25
		return mtdSales;
26
	}
27
 
28
	public void setMtdSales(String mtdSales) {
29
		this.mtdSales = mtdSales;
30
	}
31
 
32
	public PartnerType getPartnerType() {
33
		return partnerType;
34
	}
35
 
36
	public void setPartnerType(PartnerType partnerType) {
37
		this.partnerType = partnerType;
38
	}
39
 
40
	@Override
41
	public String toString() {
42
		return "MonthSaleModel [monthlySales=" + monthlySales + ", mtdSales=" + mtdSales + ", month=" + month
43
				+ ", partnerType=" + partnerType + "]";
44
	}
45
 
46
	public String getMonthlySales() {
47
		return monthlySales;
48
	}
49
 
50
	public void setMonthlySales(String monthlySales) {
51
		this.monthlySales = monthlySales;
52
	}
53
 
54
	@Override
55
	public int hashCode() {
56
		final int prime = 31;
57
		int result = 1;
58
		result = prime * result + ((month == null) ? 0 : month.hashCode());
59
		result = prime * result + ((monthlySales == null) ? 0 : monthlySales.hashCode());
60
		result = prime * result + ((mtdSales == null) ? 0 : mtdSales.hashCode());
61
		result = prime * result + ((partnerType == null) ? 0 : partnerType.hashCode());
62
		return result;
63
	}
64
 
65
	@Override
66
	public boolean equals(Object obj) {
67
		if (this == obj)
68
			return true;
69
		if (obj == null)
70
			return false;
71
		if (getClass() != obj.getClass())
72
			return false;
73
		MonthSaleModel other = (MonthSaleModel) obj;
74
		if (month == null) {
75
			if (other.month != null)
76
				return false;
77
		} else if (!month.equals(other.month))
78
			return false;
79
		if (monthlySales == null) {
80
			if (other.monthlySales != null)
81
				return false;
82
		} else if (!monthlySales.equals(other.monthlySales))
83
			return false;
84
		if (mtdSales == null) {
85
			if (other.mtdSales != null)
86
				return false;
87
		} else if (!mtdSales.equals(other.mtdSales))
88
			return false;
89
		if (partnerType != other.partnerType)
90
			return false;
91
		return true;
92
	}
93
 
94
 
95
 
96
}