| 30859 |
tejbeer |
1 |
package com.spice.profitmandi.dao.entity.transaction;
|
|
|
2 |
|
|
|
3 |
import java.math.BigDecimal;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
import java.util.List;
|
|
|
6 |
|
|
|
7 |
import javax.persistence.Column;
|
|
|
8 |
import javax.persistence.Entity;
|
|
|
9 |
import javax.persistence.GeneratedValue;
|
|
|
10 |
import javax.persistence.GenerationType;
|
|
|
11 |
import javax.persistence.Id;
|
|
|
12 |
import javax.persistence.Table;
|
|
|
13 |
import javax.persistence.Transient;
|
|
|
14 |
|
|
|
15 |
import com.spice.profitmandi.dao.model.DailyStatementModel;
|
|
|
16 |
|
|
|
17 |
@Entity
|
|
|
18 |
@Table(name = "transaction.loan", schema = "transaction")
|
|
|
19 |
public class Loan {
|
|
|
20 |
|
|
|
21 |
@Id
|
|
|
22 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
23 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
24 |
private int id;
|
|
|
25 |
|
|
|
26 |
@Column(name = "fofo_id")
|
|
|
27 |
private int fofoId;
|
|
|
28 |
|
|
|
29 |
@Column(name = "interest_rate")
|
|
|
30 |
private BigDecimal interestRate;
|
|
|
31 |
|
|
|
32 |
@Column(name = "intial_amount")
|
|
|
33 |
private BigDecimal intialAmount;
|
|
|
34 |
|
|
|
35 |
@Column(name = "pending_amount")
|
|
|
36 |
private BigDecimal pendingAmount;
|
|
|
37 |
|
|
|
38 |
@Column(name = "created_on")
|
|
|
39 |
private LocalDateTime createdOn;
|
|
|
40 |
|
|
|
41 |
@Column(name = "due_date")
|
|
|
42 |
private LocalDateTime dueDate;
|
|
|
43 |
|
|
|
44 |
@Column(name = "interest_accured")
|
|
|
45 |
private BigDecimal interestAccrued;
|
|
|
46 |
|
|
|
47 |
@Column(name = "interest_paid")
|
|
|
48 |
private BigDecimal interestPaid;
|
|
|
49 |
|
|
|
50 |
@Column(name = "free_days")
|
|
|
51 |
private int freeDays;
|
|
|
52 |
|
|
|
53 |
@Transient
|
| 30929 |
tejbeer |
54 |
private boolean loanStatus;
|
|
|
55 |
|
|
|
56 |
@Transient
|
| 31159 |
tejbeer |
57 |
private BigDecimal totalPending;
|
|
|
58 |
|
|
|
59 |
@Transient
|
| 30859 |
tejbeer |
60 |
private List<DailyStatementModel> dailyStatementModel;
|
|
|
61 |
|
|
|
62 |
public int getId() {
|
|
|
63 |
return id;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public void setId(int id) {
|
|
|
67 |
this.id = id;
|
|
|
68 |
}
|
|
|
69 |
|
| 31159 |
tejbeer |
70 |
public BigDecimal getTotalPending() {
|
|
|
71 |
return totalPending;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public void setTotalPending(BigDecimal totalPending) {
|
|
|
75 |
this.totalPending = totalPending;
|
|
|
76 |
}
|
|
|
77 |
|
| 30859 |
tejbeer |
78 |
public int getFofoId() {
|
|
|
79 |
return fofoId;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public void setFofoId(int fofoId) {
|
|
|
83 |
this.fofoId = fofoId;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public BigDecimal getInterestRate() {
|
|
|
87 |
return interestRate;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public void setInterestRate(BigDecimal interestRate) {
|
|
|
91 |
this.interestRate = interestRate;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public BigDecimal getIntialAmount() {
|
|
|
95 |
return intialAmount;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public void setIntialAmount(BigDecimal intialAmount) {
|
|
|
99 |
this.intialAmount = intialAmount;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
public BigDecimal getPendingAmount() {
|
|
|
103 |
return pendingAmount;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
public void setPendingAmount(BigDecimal pendingAmount) {
|
|
|
107 |
this.pendingAmount = pendingAmount;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
public LocalDateTime getCreatedOn() {
|
|
|
111 |
return createdOn;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
public void setCreatedOn(LocalDateTime createdOn) {
|
|
|
115 |
this.createdOn = createdOn;
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
public LocalDateTime getDueDate() {
|
|
|
119 |
return dueDate;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public void setDueDate(LocalDateTime dueDate) {
|
|
|
123 |
this.dueDate = dueDate;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
public BigDecimal getInterestAccrued() {
|
|
|
127 |
return interestAccrued;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public void setInterestAccrued(BigDecimal interestAccrued) {
|
|
|
131 |
this.interestAccrued = interestAccrued;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public BigDecimal getInterestPaid() {
|
|
|
135 |
return interestPaid;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public void setInterestPaid(BigDecimal interestPaid) {
|
|
|
139 |
this.interestPaid = interestPaid;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
public int getFreeDays() {
|
|
|
143 |
return freeDays;
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
public void setFreeDays(int freeDays) {
|
|
|
147 |
this.freeDays = freeDays;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
public List<DailyStatementModel> getDailyStatementModel() {
|
|
|
151 |
return dailyStatementModel;
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
public void setDailyStatementModel(List<DailyStatementModel> dailyStatementModel) {
|
|
|
155 |
this.dailyStatementModel = dailyStatementModel;
|
|
|
156 |
}
|
|
|
157 |
|
| 30929 |
tejbeer |
158 |
public boolean isLoanStatus() {
|
|
|
159 |
return loanStatus;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
public void setLoanStatus(boolean loanStatus) {
|
|
|
163 |
this.loanStatus = loanStatus;
|
|
|
164 |
}
|
|
|
165 |
|
| 30859 |
tejbeer |
166 |
@Override
|
|
|
167 |
public String toString() {
|
|
|
168 |
return "Loan [id=" + id + ", fofoId=" + fofoId + ", interestRate=" + interestRate + ", intialAmount="
|
|
|
169 |
+ intialAmount + ", pendingAmount=" + pendingAmount + ", createdOn=" + createdOn + ", dueDate="
|
|
|
170 |
+ dueDate + ", interestAccrued=" + interestAccrued + ", interestPaid=" + interestPaid + ", freeDays="
|
| 31159 |
tejbeer |
171 |
+ freeDays + ", loanStatus=" + loanStatus + ", totalPending=" + totalPending + ", dailyStatementModel="
|
|
|
172 |
+ dailyStatementModel + "]";
|
| 30859 |
tejbeer |
173 |
}
|
|
|
174 |
|
|
|
175 |
}
|