Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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;
10
 
11
 
12
	public String getMonth() {
13
		return month;
14
	}
15
 
16
	public void setMonth(String month) {
17
		this.month = month;
18
	}
19
 
20
	private PartnerType partnerType;
21
 
22
 
23
	public String getMtdSales() {
24
		return mtdSales;
25
	}
26
 
27
	public void setMtdSales(String mtdSales) {
28
		this.mtdSales = mtdSales;
29
	}
30
 
31
	public PartnerType getPartnerType() {
32
		return partnerType;
33
	}
34
 
35
	public void setPartnerType(PartnerType partnerType) {
36
		this.partnerType = partnerType;
37
	}
38
 
39
	@Override
40
	public String toString() {
41
		return "MonthSaleModel [monthlySales=" + monthlySales + ", mtdSales=" + mtdSales + ", month=" + month
42
				+ ", partnerType=" + partnerType + "]";
43
	}
44
 
45
	public String getMonthlySales() {
46
		return monthlySales;
47
	}
48
 
49
	public void setMonthlySales(String monthlySales) {
50
		this.monthlySales = monthlySales;
51
	}
52
 
53
	@Override
54
	public int hashCode() {
55
		final int prime = 31;
56
		int result = 1;
57
		result = prime * result + ((month == null) ? 0 : month.hashCode());
58
		result = prime * result + ((monthlySales == null) ? 0 : monthlySales.hashCode());
59
		result = prime * result + ((mtdSales == null) ? 0 : mtdSales.hashCode());
60
		result = prime * result + ((partnerType == null) ? 0 : partnerType.hashCode());
61
		return result;
62
	}
63
 
64
	@Override
65
	public boolean equals(Object obj) {
66
		if (this == obj)
67
			return true;
68
		if (obj == null)
69
			return false;
70
		if (getClass() != obj.getClass())
71
			return false;
72
		MonthSaleModel other = (MonthSaleModel) obj;
73
		if (month == null) {
74
			if (other.month != null)
75
				return false;
76
		} else if (!month.equals(other.month))
77
			return false;
78
		if (monthlySales == null) {
79
			if (other.monthlySales != null)
80
				return false;
81
		} else if (!monthlySales.equals(other.monthlySales))
82
			return false;
83
		if (mtdSales == null) {
84
			if (other.mtdSales != null)
85
				return false;
86
		} else if (!mtdSales.equals(other.mtdSales))
87
			return false;
88
		if (partnerType != other.partnerType)
89
			return false;
90
		return true;
91
	}
92
 
93
 
94
 
95
}