Subversion Repositories SmartDukaan

Rev

Rev 32417 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
31285 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class PartnerMonthlySaleModel {
6
 
7
	private int fofoId;
8
	private String yearMonth;
9
	private long amount;
10
 
11
	public PartnerMonthlySaleModel(int fofoId, String yearMonth, long amount) {
12
		super();
13
		this.fofoId = fofoId;
14
		this.yearMonth = yearMonth;
15
		this.amount = amount;
16
	}
17
 
18
	public int getFofoId() {
19
		return fofoId;
20
	}
21
 
22
	public void setFofoId(int fofoId) {
23
		this.fofoId = fofoId;
24
	}
25
 
26
	public String getYearMonth() {
27
		return yearMonth;
28
	}
29
 
30
	public void setYearMonth(String yearMonth) {
31
		this.yearMonth = yearMonth;
32
	}
33
 
34
	public long getAmount() {
35
		return amount;
36
	}
37
 
38
	public void setAmount(long amount) {
39
		this.amount = amount;
40
	}
41
 
42
	@Override
43
	public int hashCode() {
44
		return Objects.hash(amount, fofoId, yearMonth);
45
	}
46
 
47
	@Override
48
	public boolean equals(Object obj) {
49
		if (this == obj)
50
			return true;
51
		if (obj == null)
52
			return false;
53
		if (getClass() != obj.getClass())
54
			return false;
55
		PartnerMonthlySaleModel other = (PartnerMonthlySaleModel) obj;
56
		return amount == other.amount && fofoId == other.fofoId && Objects.equals(yearMonth, other.yearMonth);
57
	}
58
 
59
	@Override
60
	public String toString() {
61
		return "PartnerMonthlySaleModel [fofoId=" + fofoId + ", yearMonth=" + yearMonth + ", amount=" + amount + "]";
62
	}
63
 
64
}