Subversion Repositories SmartDukaan

Rev

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