Subversion Repositories SmartDukaan

Rev

Rev 30110 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30110 Rev 30137
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
-
 
3
import java.time.LocalDateTime;
-
 
4
 
3
import com.spice.profitmandi.dao.entity.auth.AuthUser;
5
import com.spice.profitmandi.dao.entity.auth.AuthUser;
4
 
6
 
5
public class PartnerSecondaryPlanModel {
7
public class PartnerSecondaryPlanModel {
6
 
8
 
7
	private int fofoId;
9
	private int fofoId;
8
	private String brand;
10
	private String brand;
9
	private Long targetPlan;
11
	private Long targetPlan;
10
	private Long achievementPlan;
12
	private Long achievementPlan;
11
	private Integer authId;
13
	private Integer authId;
-
 
14
	private LocalDateTime committedDate;
12
 
15
 
13
	private AuthUser authUser;
16
	private AuthUser authUser;
14
 
17
 
15
	public PartnerSecondaryPlanModel(int fofoId, String brand, Long targetPlan, Long achievementPlan, Integer authId) {
18
	public PartnerSecondaryPlanModel(int fofoId, String brand, Long targetPlan, Long achievementPlan, Integer authId,
-
 
19
			LocalDateTime committedDate) {
16
		super();
20
		super();
17
		this.fofoId = fofoId;
21
		this.fofoId = fofoId;
18
		this.brand = brand;
22
		this.brand = brand;
19
		this.targetPlan = targetPlan;
23
		this.targetPlan = targetPlan;
20
		this.achievementPlan = achievementPlan;
24
		this.achievementPlan = achievementPlan;
21
		this.authId = authId;
25
		this.authId = authId;
-
 
26
		this.committedDate = committedDate;
22
	}
27
	}
23
 
28
 
24
	public PartnerSecondaryPlanModel() {
29
	public PartnerSecondaryPlanModel() {
25
		super();
30
		super();
26
 
31
 
27
	}
32
	}
28
 
33
 
-
 
34
	public LocalDateTime getCommittedDate() {
-
 
35
		return committedDate;
-
 
36
	}
-
 
37
 
-
 
38
	public void setCommittedDate(LocalDateTime committedDate) {
-
 
39
		this.committedDate = committedDate;
-
 
40
	}
-
 
41
 
29
	public AuthUser getAuthUser() {
42
	public AuthUser getAuthUser() {
30
		return authUser;
43
		return authUser;
31
	}
44
	}
32
 
45
 
33
	public void setAuthUser(AuthUser authUser) {
46
	public void setAuthUser(AuthUser authUser) {
Line 76... Line 89...
76
 
89
 
77
	@Override
90
	@Override
78
	public int hashCode() {
91
	public int hashCode() {
79
		final int prime = 31;
92
		final int prime = 31;
80
		int result = 1;
93
		int result = 1;
81
		result = prime * result + ((achievementPlan == null) ? 0 : achievementPlan.hashCode());
-
 
82
		result = prime * result + ((authId == null) ? 0 : authId.hashCode());
94
		result = prime * result + ((authId == null) ? 0 : authId.hashCode());
83
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
95
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
-
 
96
		result = prime * result + ((committedDate == null) ? 0 : committedDate.hashCode());
84
		result = prime * result + fofoId;
97
		result = prime * result + fofoId;
85
		result = prime * result + ((targetPlan == null) ? 0 : targetPlan.hashCode());
98
		result = prime * result + ((targetPlan == null) ? 0 : targetPlan.hashCode());
86
		return result;
99
		return result;
87
	}
100
	}
88
 
101
 
Line 93... Line 106...
93
		if (obj == null)
106
		if (obj == null)
94
			return false;
107
			return false;
95
		if (getClass() != obj.getClass())
108
		if (getClass() != obj.getClass())
96
			return false;
109
			return false;
97
		PartnerSecondaryPlanModel other = (PartnerSecondaryPlanModel) obj;
110
		PartnerSecondaryPlanModel other = (PartnerSecondaryPlanModel) obj;
98
		if (achievementPlan == null) {
-
 
99
			if (other.achievementPlan != null)
-
 
100
				return false;
-
 
101
		} else if (!achievementPlan.equals(other.achievementPlan))
-
 
102
			return false;
-
 
103
		if (authId == null) {
111
		if (authId == null) {
104
			if (other.authId != null)
112
			if (other.authId != null)
105
				return false;
113
				return false;
106
		} else if (!authId.equals(other.authId))
114
		} else if (!authId.equals(other.authId))
107
			return false;
115
			return false;
-
 
116
		else if (!authUser.equals(other.authUser))
-
 
117
			return false;
108
		if (brand == null) {
118
		if (brand == null) {
109
			if (other.brand != null)
119
			if (other.brand != null)
110
				return false;
120
				return false;
111
		} else if (!brand.equals(other.brand))
121
		} else if (!brand.equals(other.brand))
112
			return false;
122
			return false;
-
 
123
		if (committedDate == null) {
-
 
124
			if (other.committedDate != null)
-
 
125
				return false;
-
 
126
		} else if (!committedDate.equals(other.committedDate))
-
 
127
			return false;
113
		if (fofoId != other.fofoId)
128
		if (fofoId != other.fofoId)
114
			return false;
129
			return false;
115
		if (targetPlan == null) {
130
		if (targetPlan == null) {
116
			if (other.targetPlan != null)
131
			if (other.targetPlan != null)
117
				return false;
132
				return false;
Line 121... Line 136...
121
	}
136
	}
122
 
137
 
123
	@Override
138
	@Override
124
	public String toString() {
139
	public String toString() {
125
		return "PartnerSecondaryPlanModel [fofoId=" + fofoId + ", brand=" + brand + ", targetPlan=" + targetPlan
140
		return "PartnerSecondaryPlanModel [fofoId=" + fofoId + ", brand=" + brand + ", targetPlan=" + targetPlan
126
				+ ", achievementPlan=" + achievementPlan + ", authId=" + authId + "]";
141
				+ ", achievementPlan=" + achievementPlan + ", authId=" + authId + ", committedDate=" + committedDate
-
 
142
				+ ", authUser=" + authUser + "]";
127
	}
143
	}
128
 
144
 
129
}
145
}