Subversion Repositories SmartDukaan

Rev

Rev 23884 | Rev 24843 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23884 Rev 24349
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.fofo;
1
package com.spice.profitmandi.dao.entity.fofo;
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
-
 
4
import java.time.LocalDate;
4
 
5
 
5
import javax.persistence.Column;
6
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.Entity;
7
import javax.persistence.EnumType;
8
import javax.persistence.EnumType;
8
import javax.persistence.Enumerated;
9
import javax.persistence.Enumerated;
Line 46... Line 47...
46
	private CounterSize counterSize = CounterSize.TEN_LAC;
47
	private CounterSize counterSize = CounterSize.TEN_LAC;
47
	
48
	
48
	@Column(name="minimum_investment")
49
	@Column(name="minimum_investment")
49
	private float minimumInvestment;
50
	private float minimumInvestment;
50
	
51
	
-
 
52
	@Column(name="grace_date")
-
 
53
	private LocalDate graceDate;
-
 
54
	
-
 
55
	@Column(name="grace_count")
-
 
56
	private int graceCount;
-
 
57
	
51
	//Number of days to realise money.
58
	//Number of days to realise money.
52
	/*@Column(name="credit_cycle")
59
	/*@Column(name="credit_cycle")
53
	private int creditCycle;*/
60
	private int creditCycle;*/
54
	
61
	
-
 
62
	public int getGraceCount() {
-
 
63
		return graceCount;
-
 
64
	}
-
 
65
	public void setGraceCount(int graceCount) {
-
 
66
		this.graceCount = graceCount;
-
 
67
	}
-
 
68
	public LocalDate getGraceDate() {
-
 
69
		return graceDate;
-
 
70
	}
-
 
71
	public void setGraceDate(LocalDate graceDate) {
-
 
72
		this.graceDate = graceDate;
-
 
73
	}
55
	public float getMinimumInvestment() {
74
	public float getMinimumInvestment() {
56
		return minimumInvestment;
75
		return minimumInvestment;
57
	}
76
	}
58
	public void setMinimumInvestment(float minimumInvestment) {
77
	public void setMinimumInvestment(float minimumInvestment) {
59
		this.minimumInvestment = minimumInvestment;
78
		this.minimumInvestment = minimumInvestment;
Line 115... Line 134...
115
	}
134
	}
116
	@Override
135
	@Override
117
	public int hashCode() {
136
	public int hashCode() {
118
		final int prime = 31;
137
		final int prime = 31;
119
		int result = 1;
138
		int result = 1;
-
 
139
		result = prime * result + ((code == null) ? 0 : code.hashCode());
-
 
140
		result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
-
 
141
		result = prime * result + graceCount;
-
 
142
		result = prime * result + ((graceDate == null) ? 0 : graceDate.hashCode());
120
		result = prime * result + id;
143
		result = prime * result + id;
-
 
144
		result = prime * result + ((latitude == null) ? 0 : latitude.hashCode());
-
 
145
		result = prime * result + ((longitude == null) ? 0 : longitude.hashCode());
-
 
146
		result = prime * result + Float.floatToIntBits(minimumInvestment);
-
 
147
		result = prime * result + ((userAddress == null) ? 0 : userAddress.hashCode());
121
		return result;
148
		return result;
122
	}
149
	}
123
	@Override
150
	@Override
124
	public boolean equals(Object obj) {
151
	public boolean equals(Object obj) {
125
		if (this == obj)
152
		if (this == obj)
Line 127... Line 154...
127
		if (obj == null)
154
		if (obj == null)
128
			return false;
155
			return false;
129
		if (getClass() != obj.getClass())
156
		if (getClass() != obj.getClass())
130
			return false;
157
			return false;
131
		FofoStore other = (FofoStore) obj;
158
		FofoStore other = (FofoStore) obj;
-
 
159
		if (code == null) {
-
 
160
			if (other.code != null)
-
 
161
				return false;
-
 
162
		} else if (!code.equals(other.code))
-
 
163
			return false;
-
 
164
		if (counterSize != other.counterSize)
-
 
165
			return false;
-
 
166
		if (graceCount != other.graceCount)
-
 
167
			return false;
-
 
168
		if (graceDate == null) {
-
 
169
			if (other.graceDate != null)
-
 
170
				return false;
-
 
171
		} else if (!graceDate.equals(other.graceDate))
-
 
172
			return false;
132
		if (id != other.id)
173
		if (id != other.id)
133
			return false;
174
			return false;
-
 
175
		if (latitude == null) {
-
 
176
			if (other.latitude != null)
-
 
177
				return false;
-
 
178
		} else if (!latitude.equals(other.latitude))
-
 
179
			return false;
-
 
180
		if (longitude == null) {
-
 
181
			if (other.longitude != null)
-
 
182
				return false;
-
 
183
		} else if (!longitude.equals(other.longitude))
-
 
184
			return false;
-
 
185
		if (Float.floatToIntBits(minimumInvestment) != Float.floatToIntBits(other.minimumInvestment))
-
 
186
			return false;
-
 
187
		if (userAddress == null) {
-
 
188
			if (other.userAddress != null)
-
 
189
				return false;
-
 
190
		} else if (!userAddress.equals(other.userAddress))
-
 
191
			return false;
134
		return true;
192
		return true;
135
	}
193
	}
136
	
194
	
137
	@Override
195
	@Override
138
	public String toString() {
196
	public String toString() {
139
		return "FofoStore [id=" + id + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
197
		return "FofoStore [id=" + id + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
140
				+ ", counterSize=" + counterSize + ", minimumInvestment=" + minimumInvestment + ", userAddress="
198
				+ ", counterSize=" + counterSize + ", minimumInvestment=" + minimumInvestment + ", graceDate="
141
				+ userAddress + "]";
199
				+ graceDate + ", graceCount=" + graceCount + ", userAddress=" + userAddress + "]";
142
	}
200
	}
143
	
201
	
144
	
202
	
145
	
203
	
146
        
204