-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPayoutRequestItem.java
110 lines (81 loc) · 2.57 KB
/
PayoutRequestItem.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package technology.touchmars.model;
import javax.persistence.*;
import java.math.BigDecimal;
@Entity
@Table(name = "payout_req_item")
public class PayoutRequestItem extends HasId {
@Column(name = "payout_item_code", unique = true)
private String payoutRequestItemCode;
@Enumerated(EnumType.STRING)
private WalletType walletType;
@Column(name = "amt")
private BigDecimal amount;
@Column(name = "ref_id", unique = true)
private String customerId;
@Column(name="note", length = 400)
private String note;
@Column(name = "lang")
private String language;
@ManyToOne(optional = false, fetch = FetchType.EAGER, targetEntity = Currency.class)
@JoinColumn(name = "currency_id", referencedColumnName = "id")
private Currency currency;
@Embedded
private RecipientId recipientId;
@ManyToOne(cascade = CascadeType.PERSIST, optional = false, fetch = FetchType.LAZY, targetEntity = PayoutRequest.class)
@JoinColumn(name = "payout_request_id", referencedColumnName = "id")
private PayoutRequest payoutRequest;
public WalletType getWalletType() {
return walletType;
}
public void setWalletType(WalletType walletType) {
this.walletType = walletType;
}
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
public Currency getCurrency() {
return currency;
}
public void setCurrency(Currency currency) {
this.currency = currency;
}
public RecipientId getRecipientId() {
return recipientId;
}
public void setRecipientId(RecipientId recipientId) {
this.recipientId = recipientId;
}
public PayoutRequest getPayoutRequest() {
return payoutRequest;
}
public void setPayoutRequest(PayoutRequest payoutRequest) {
this.payoutRequest = payoutRequest;
}
public String getPayoutRequestItemCode() {
return payoutRequestItemCode;
}
public void setPayoutRequestItemCode(String payoutRequestItemCode) {
this.payoutRequestItemCode = payoutRequestItemCode;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
}