Subversion Repositories SmartDukaan

Rev

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

Rev 29811 Rev 29813
Line 5... Line 5...
5
 
5
 
6
import javax.persistence.Column;
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
7
import javax.persistence.Entity;
8
import javax.persistence.EnumType;
8
import javax.persistence.EnumType;
9
import javax.persistence.Enumerated;
9
import javax.persistence.Enumerated;
-
 
10
import javax.persistence.GeneratedValue;
-
 
11
import javax.persistence.GenerationType;
10
import javax.persistence.Id;
12
import javax.persistence.Id;
11
import javax.persistence.Table;
13
import javax.persistence.Table;
12
 
14
 
13
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
15
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
14
 
16
 
Line 17... Line 19...
17
public class CreditAccount implements Serializable {
19
public class CreditAccount implements Serializable {
18
 
20
 
19
	private static final long serialVersionUID = 1L;
21
	private static final long serialVersionUID = 1L;
20
 
22
 
21
	@Id
23
	@Id
-
 
24
	@Column(name = "id", unique = true, updatable = false)
-
 
25
	@GeneratedValue(strategy = GenerationType.IDENTITY)
-
 
26
	private int id;
-
 
27
 
-
 
28
	public int getId() {
-
 
29
		return id;
-
 
30
	}
-
 
31
 
-
 
32
	public void setId(int id) {
-
 
33
		this.id = id;
-
 
34
	}
-
 
35
 
22
	@Column(name = "fofo_id", unique = true, updatable = false)
36
	@Column(name = "fofo_id", unique = true, updatable = false)
23
	private int fofoId;
37
	private int fofoId;
24
 
38
 
25
	@Id
-
 
26
	@Enumerated(EnumType.STRING)
39
	@Enumerated(EnumType.STRING)
27
	private Gateway gateway;
40
	private Gateway gateway;
28
 
41
 
29
	@Column
42
	@Column
30
	private float sanctionedAmount;
43
	private float sanctionedAmount;
Line 128... Line 141...
128
		result = prime * result + Float.floatToIntBits(availableAmount);
141
		result = prime * result + Float.floatToIntBits(availableAmount);
129
		result = prime * result + ((creditStatus == null) ? 0 : creditStatus.hashCode());
142
		result = prime * result + ((creditStatus == null) ? 0 : creditStatus.hashCode());
130
		result = prime * result + ((description == null) ? 0 : description.hashCode());
143
		result = prime * result + ((description == null) ? 0 : description.hashCode());
131
		result = prime * result + fofoId;
144
		result = prime * result + fofoId;
132
		result = prime * result + ((gateway == null) ? 0 : gateway.hashCode());
145
		result = prime * result + ((gateway == null) ? 0 : gateway.hashCode());
-
 
146
		result = prime * result + id;
133
		result = prime * result + Float.floatToIntBits(interestRate);
147
		result = prime * result + Float.floatToIntBits(interestRate);
134
		result = prime * result + Float.floatToIntBits(sanctionedAmount);
148
		result = prime * result + Float.floatToIntBits(sanctionedAmount);
135
		result = prime * result + ((updatedOn == null) ? 0 : updatedOn.hashCode());
149
		result = prime * result + ((updatedOn == null) ? 0 : updatedOn.hashCode());
136
		return result;
150
		return result;
137
	}
151
	}
Line 158... Line 172...
158
			return false;
172
			return false;
159
		if (fofoId != other.fofoId)
173
		if (fofoId != other.fofoId)
160
			return false;
174
			return false;
161
		if (gateway != other.gateway)
175
		if (gateway != other.gateway)
162
			return false;
176
			return false;
-
 
177
		if (id != other.id)
-
 
178
			return false;
163
		if (Float.floatToIntBits(interestRate) != Float.floatToIntBits(other.interestRate))
179
		if (Float.floatToIntBits(interestRate) != Float.floatToIntBits(other.interestRate))
164
			return false;
180
			return false;
165
		if (Float.floatToIntBits(sanctionedAmount) != Float.floatToIntBits(other.sanctionedAmount))
181
		if (Float.floatToIntBits(sanctionedAmount) != Float.floatToIntBits(other.sanctionedAmount))
166
			return false;
182
			return false;
167
		if (updatedOn == null) {
183
		if (updatedOn == null) {
Line 172... Line 188...
172
		return true;
188
		return true;
173
	}
189
	}
174
 
190
 
175
	@Override
191
	@Override
176
	public String toString() {
192
	public String toString() {
177
		return "CreditAccount [fofoId=" + fofoId + ", gateway=" + gateway + ", sanctionedAmount=" + sanctionedAmount
193
		return "CreditAccount [id=" + id + ", fofoId=" + fofoId + ", gateway=" + gateway + ", sanctionedAmount="
178
				+ ", availableAmount=" + availableAmount + ", interestRate=" + interestRate + ", creditStatus="
194
				+ sanctionedAmount + ", availableAmount=" + availableAmount + ", interestRate=" + interestRate
179
				+ creditStatus + ", updatedOn=" + updatedOn + ", active=" + active + ", description=" + description
195
				+ ", creditStatus=" + creditStatus + ", updatedOn=" + updatedOn + ", active=" + active
180
				+ "]";
196
				+ ", description=" + description + "]";
181
	}
197
	}
182
 
198
 
183
}
199
}