Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37264 ranu 1
package com.spice.profitmandi.dao.entity.user;
2
 
3
import javax.persistence.*;
4
import java.time.LocalDateTime;
5
 
6
/**
7
 * RBM assignment gate for a partner onboarding. A row is inserted the moment
8
 * STORE_CODE_CREATED fires, with status = PENDING. When the partner's RBM L3
9
 * confirms Yes on the standalone panel, status flips to ASSIGNED and a matching
10
 * RBM_ASSIGNMENT store-timeline row is written.
11
 * <p>
12
 * PO_CREATION is gated on this table (not BLOCKER_MAP) so legacy partners that
13
 * were past STORE_CODE_CREATED before this feature launched have no row here
14
 * and therefore are not affected by the new gate.
15
 */
16
@Entity
17
@Table(name = "user.rbm_assignment")
18
public class RbmAssignment {
19
    @Id
20
    @GeneratedValue(strategy = GenerationType.IDENTITY)
21
    @Column(name = "id")
22
    private int id;
23
 
24
    @Column(name = "onboarding_id")
25
    private int onboardingId;
26
 
27
    @Column(name = "status")
28
    private String status;
29
 
30
    @Column(name = "marked_by")
31
    private String markedBy;
32
 
33
    @Column(name = "marked_at")
34
    private LocalDateTime markedAt;
35
 
36
    @Column(name = "created_at")
37
    private LocalDateTime createdAt;
38
 
39
    public int getId() {
40
        return id;
41
    }
42
 
43
    public void setId(int id) {
44
        this.id = id;
45
    }
46
 
47
    public int getOnboardingId() {
48
        return onboardingId;
49
    }
50
 
51
    public void setOnboardingId(int onboardingId) {
52
        this.onboardingId = onboardingId;
53
    }
54
 
55
    public String getStatus() {
56
        return status;
57
    }
58
 
59
    public void setStatus(String status) {
60
        this.status = status;
61
    }
62
 
63
    public String getMarkedBy() {
64
        return markedBy;
65
    }
66
 
67
    public void setMarkedBy(String markedBy) {
68
        this.markedBy = markedBy;
69
    }
70
 
71
    public LocalDateTime getMarkedAt() {
72
        return markedAt;
73
    }
74
 
75
    public void setMarkedAt(LocalDateTime markedAt) {
76
        this.markedAt = markedAt;
77
    }
78
 
79
    public LocalDateTime getCreatedAt() {
80
        return createdAt;
81
    }
82
 
83
    public void setCreatedAt(LocalDateTime createdAt) {
84
        this.createdAt = createdAt;
85
    }
86
 
87
    @Override
88
    public String toString() {
89
        return "RbmAssignment{" +
90
                "id=" + id +
91
                ", onboardingId=" + onboardingId +
92
                ", status='" + status + '\'' +
93
                ", markedBy='" + markedBy + '\'' +
94
                ", markedAt=" + markedAt +
95
                ", createdAt=" + createdAt +
96
                '}';
97
    }
98
}