Subversion Repositories SmartDukaan

Rev

Rev 30859 | Rev 31159 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
30859 tejbeer 57
	private List<DailyStatementModel> dailyStatementModel;
58
 
59
	public int getId() {
60
		return id;
61
	}
62
 
63
	public void setId(int id) {
64
		this.id = id;
65
	}
66
 
67
	public int getFofoId() {
68
		return fofoId;
69
	}
70
 
71
	public void setFofoId(int fofoId) {
72
		this.fofoId = fofoId;
73
	}
74
 
75
	public BigDecimal getInterestRate() {
76
		return interestRate;
77
	}
78
 
79
	public void setInterestRate(BigDecimal interestRate) {
80
		this.interestRate = interestRate;
81
	}
82
 
83
	public BigDecimal getIntialAmount() {
84
		return intialAmount;
85
	}
86
 
87
	public void setIntialAmount(BigDecimal intialAmount) {
88
		this.intialAmount = intialAmount;
89
	}
90
 
91
	public BigDecimal getPendingAmount() {
92
		return pendingAmount;
93
	}
94
 
95
	public void setPendingAmount(BigDecimal pendingAmount) {
96
		this.pendingAmount = pendingAmount;
97
	}
98
 
99
	public LocalDateTime getCreatedOn() {
100
		return createdOn;
101
	}
102
 
103
	public void setCreatedOn(LocalDateTime createdOn) {
104
		this.createdOn = createdOn;
105
	}
106
 
107
	public LocalDateTime getDueDate() {
108
		return dueDate;
109
	}
110
 
111
	public void setDueDate(LocalDateTime dueDate) {
112
		this.dueDate = dueDate;
113
	}
114
 
115
	public BigDecimal getInterestAccrued() {
116
		return interestAccrued;
117
	}
118
 
119
	public void setInterestAccrued(BigDecimal interestAccrued) {
120
		this.interestAccrued = interestAccrued;
121
	}
122
 
123
	public BigDecimal getInterestPaid() {
124
		return interestPaid;
125
	}
126
 
127
	public void setInterestPaid(BigDecimal interestPaid) {
128
		this.interestPaid = interestPaid;
129
	}
130
 
131
	public int getFreeDays() {
132
		return freeDays;
133
	}
134
 
135
	public void setFreeDays(int freeDays) {
136
		this.freeDays = freeDays;
137
	}
138
 
139
	public List<DailyStatementModel> getDailyStatementModel() {
140
		return dailyStatementModel;
141
	}
142
 
143
	public void setDailyStatementModel(List<DailyStatementModel> dailyStatementModel) {
144
		this.dailyStatementModel = dailyStatementModel;
145
	}
146
 
30929 tejbeer 147
	public boolean isLoanStatus() {
148
		return loanStatus;
149
	}
150
 
151
	public void setLoanStatus(boolean loanStatus) {
152
		this.loanStatus = loanStatus;
153
	}
154
 
30859 tejbeer 155
	@Override
156
	public String toString() {
157
		return "Loan [id=" + id + ", fofoId=" + fofoId + ", interestRate=" + interestRate + ", intialAmount="
158
				+ intialAmount + ", pendingAmount=" + pendingAmount + ", createdOn=" + createdOn + ", dueDate="
159
				+ dueDate + ", interestAccrued=" + interestAccrued + ", interestPaid=" + interestPaid + ", freeDays="
30929 tejbeer 160
				+ freeDays + ", loanStatus=" + loanStatus + ", dailyStatementModel=" + dailyStatementModel + "]";
30859 tejbeer 161
	}
162
 
163
}