Subversion Repositories SmartDukaan

Rev

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

Rev 29813 Rev 30219
Line 9... Line 9...
9
import javax.persistence.Enumerated;
9
import javax.persistence.Enumerated;
10
import javax.persistence.GeneratedValue;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
13
import javax.persistence.Table;
-
 
14
import javax.persistence.Transient;
14
 
15
 
15
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
16
import com.spice.profitmandi.dao.enumuration.fofo.Gateway;
16
 
17
 
17
@Entity
18
@Entity
18
@Table(name = "dtr.credit_account", schema = "dtr")
19
@Table(name = "dtr.credit_account", schema = "dtr")
Line 59... Line 60...
59
	private boolean active;
60
	private boolean active;
60
 
61
 
61
	@Column
62
	@Column
62
	private String description;
63
	private String description;
63
 
64
 
-
 
65
	@Column(name = "loan_reference_id")
-
 
66
	private String loanReferenceId;
-
 
67
 
-
 
68
	@Transient
-
 
69
	private LocalDateTime expiredOn;
-
 
70
 
-
 
71
	@Transient
-
 
72
	private String processingFee;
-
 
73
 
-
 
74
	public String getProcessingFee() {
-
 
75
		return processingFee;
-
 
76
	}
-
 
77
 
-
 
78
	public void setProcessingFee(String processingFee) {
-
 
79
		this.processingFee = processingFee;
-
 
80
	}
-
 
81
 
-
 
82
	public String getLoanReferenceId() {
-
 
83
		return loanReferenceId;
-
 
84
	}
-
 
85
 
-
 
86
	public LocalDateTime getExpiredOn() {
-
 
87
		return expiredOn;
-
 
88
	}
-
 
89
 
-
 
90
	public void setExpiredOn(LocalDateTime expiredOn) {
-
 
91
		this.expiredOn = expiredOn;
-
 
92
	}
-
 
93
 
-
 
94
	public void setLoanReferenceId(String loanReferenceId) {
-
 
95
		this.loanReferenceId = loanReferenceId;
-
 
96
	}
-
 
97
 
64
	public boolean isActive() {
98
	public boolean isActive() {
65
		return active;
99
		return active;
66
	}
100
	}
67
 
101
 
68
	public void setActive(boolean active) {
102
	public void setActive(boolean active) {
Line 143... Line 177...
143
		result = prime * result + ((description == null) ? 0 : description.hashCode());
177
		result = prime * result + ((description == null) ? 0 : description.hashCode());
144
		result = prime * result + fofoId;
178
		result = prime * result + fofoId;
145
		result = prime * result + ((gateway == null) ? 0 : gateway.hashCode());
179
		result = prime * result + ((gateway == null) ? 0 : gateway.hashCode());
146
		result = prime * result + id;
180
		result = prime * result + id;
147
		result = prime * result + Float.floatToIntBits(interestRate);
181
		result = prime * result + Float.floatToIntBits(interestRate);
-
 
182
		result = prime * result + ((loanReferenceId == null) ? 0 : loanReferenceId.hashCode());
148
		result = prime * result + Float.floatToIntBits(sanctionedAmount);
183
		result = prime * result + Float.floatToIntBits(sanctionedAmount);
149
		result = prime * result + ((updatedOn == null) ? 0 : updatedOn.hashCode());
184
		result = prime * result + ((updatedOn == null) ? 0 : updatedOn.hashCode());
150
		return result;
185
		return result;
151
	}
186
	}
152
 
187
 
Line 176... Line 211...
176
			return false;
211
			return false;
177
		if (id != other.id)
212
		if (id != other.id)
178
			return false;
213
			return false;
179
		if (Float.floatToIntBits(interestRate) != Float.floatToIntBits(other.interestRate))
214
		if (Float.floatToIntBits(interestRate) != Float.floatToIntBits(other.interestRate))
180
			return false;
215
			return false;
-
 
216
		if (loanReferenceId == null) {
-
 
217
			if (other.loanReferenceId != null)
-
 
218
				return false;
-
 
219
		} else if (!loanReferenceId.equals(other.loanReferenceId))
-
 
220
			return false;
181
		if (Float.floatToIntBits(sanctionedAmount) != Float.floatToIntBits(other.sanctionedAmount))
221
		if (Float.floatToIntBits(sanctionedAmount) != Float.floatToIntBits(other.sanctionedAmount))
182
			return false;
222
			return false;
183
		if (updatedOn == null) {
223
		if (updatedOn == null) {
184
			if (other.updatedOn != null)
224
			if (other.updatedOn != null)
185
				return false;
225
				return false;
Line 191... Line 231...
191
	@Override
231
	@Override
192
	public String toString() {
232
	public String toString() {
193
		return "CreditAccount [id=" + id + ", fofoId=" + fofoId + ", gateway=" + gateway + ", sanctionedAmount="
233
		return "CreditAccount [id=" + id + ", fofoId=" + fofoId + ", gateway=" + gateway + ", sanctionedAmount="
194
				+ sanctionedAmount + ", availableAmount=" + availableAmount + ", interestRate=" + interestRate
234
				+ sanctionedAmount + ", availableAmount=" + availableAmount + ", interestRate=" + interestRate
195
				+ ", creditStatus=" + creditStatus + ", updatedOn=" + updatedOn + ", active=" + active
235
				+ ", creditStatus=" + creditStatus + ", updatedOn=" + updatedOn + ", active=" + active
196
				+ ", description=" + description + "]";
236
				+ ", description=" + description + ", loanReferenceId=" + loanReferenceId + "]";
197
	}
237
	}
198
 
238
 
199
}
239
}