-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPayoutRequestSummary.java
45 lines (34 loc) · 1.18 KB
/
PayoutRequestSummary.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
package technology.touchmars.model;
import javax.persistence.*;
import java.math.BigDecimal;
@Entity
@Table(name = "payout_req_sum")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "sum_type")
public abstract class PayoutRequestSummary extends HasId {
@Column(name = "email_sub", length = 256)
private String emailSubject;
@Column(name = "email_txt", length = 100)
private String emailContent;
@ManyToOne(optional = false, fetch = FetchType.LAZY, targetEntity = PayoutRequest.class)
@JoinColumn(name = "payout_request_id", referencedColumnName = "id")
private PayoutRequest payoutRequest;
public String getEmailSubject() {
return emailSubject;
}
public void setEmailSubject(String emailSubject) {
this.emailSubject = emailSubject;
}
public String getEmailContent() {
return emailContent;
}
public void setEmailContent(String emailContent) {
this.emailContent = emailContent;
}
public PayoutRequest getPayoutRequest() {
return payoutRequest;
}
public void setPayoutRequest(PayoutRequest payoutRequest) {
this.payoutRequest = payoutRequest;
}
}