| 37110 |
aman |
1 |
package com.spice.profitmandi.dao.entity.user;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
|
|
|
6 |
/**
|
|
|
7 |
* Business-agreement e-sign record for a partner onboarding. Holds the uploaded
|
|
|
8 |
* signed-agreement document and the Legal (Gaurav Sharma) verification. The
|
|
|
9 |
* authoritative PO gate is still the AGREEMENT_ESIGN store-timeline row; this
|
|
|
10 |
* table captures the document + audit trail (who uploaded / verified, when).
|
|
|
11 |
*/
|
|
|
12 |
@Entity
|
|
|
13 |
@Table(name = "user.agreement_esign")
|
|
|
14 |
public class AgreementEsign {
|
|
|
15 |
@Id
|
|
|
16 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
17 |
@Column(name = "id")
|
|
|
18 |
private int id;
|
|
|
19 |
@Column(name = "onboarding_id")
|
|
|
20 |
private int onboardingId;
|
|
|
21 |
@Column(name = "attachment")
|
|
|
22 |
private int attachment;
|
|
|
23 |
@Column(name = "status")
|
|
|
24 |
private String status;
|
|
|
25 |
@Column(name = "uploaded_by")
|
|
|
26 |
private String uploadedBy;
|
|
|
27 |
@Column(name = "upload_timestamp")
|
|
|
28 |
private LocalDateTime uploadTimestamp;
|
|
|
29 |
@Column(name = "verified_by")
|
|
|
30 |
private String verifiedBy;
|
|
|
31 |
@Column(name = "verified_at")
|
|
|
32 |
private LocalDateTime verifiedAt;
|
|
|
33 |
|
|
|
34 |
public int getId() {
|
|
|
35 |
return id;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public void setId(int id) {
|
|
|
39 |
this.id = id;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public int getOnboardingId() {
|
|
|
43 |
return onboardingId;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public void setOnboardingId(int onboardingId) {
|
|
|
47 |
this.onboardingId = onboardingId;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
public int getAttachment() {
|
|
|
51 |
return attachment;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
public void setAttachment(int attachment) {
|
|
|
55 |
this.attachment = attachment;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public String getStatus() {
|
|
|
59 |
return status;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public void setStatus(String status) {
|
|
|
63 |
this.status = status;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public String getUploadedBy() {
|
|
|
67 |
return uploadedBy;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public void setUploadedBy(String uploadedBy) {
|
|
|
71 |
this.uploadedBy = uploadedBy;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
public LocalDateTime getUploadTimestamp() {
|
|
|
75 |
return uploadTimestamp;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
public void setUploadTimestamp(LocalDateTime uploadTimestamp) {
|
|
|
79 |
this.uploadTimestamp = uploadTimestamp;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
public String getVerifiedBy() {
|
|
|
83 |
return verifiedBy;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
public void setVerifiedBy(String verifiedBy) {
|
|
|
87 |
this.verifiedBy = verifiedBy;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public LocalDateTime getVerifiedAt() {
|
|
|
91 |
return verifiedAt;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public void setVerifiedAt(LocalDateTime verifiedAt) {
|
|
|
95 |
this.verifiedAt = verifiedAt;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
@Override
|
|
|
99 |
public String toString() {
|
|
|
100 |
return "AgreementEsign{" +
|
|
|
101 |
"id=" + id +
|
|
|
102 |
", onboardingId=" + onboardingId +
|
|
|
103 |
", attachment=" + attachment +
|
|
|
104 |
", status='" + status + '\'' +
|
|
|
105 |
", uploadedBy='" + uploadedBy + '\'' +
|
|
|
106 |
", uploadTimestamp=" + uploadTimestamp +
|
|
|
107 |
", verifiedBy='" + verifiedBy + '\'' +
|
|
|
108 |
", verifiedAt=" + verifiedAt +
|
|
|
109 |
'}';
|
|
|
110 |
}
|
|
|
111 |
}
|