Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.user;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * Business-agreement e-sign record for a partner onboarding. Holds the uploaded
 * signed-agreement document and the Legal (Gaurav Sharma) verification. The
 * authoritative PO gate is still the AGREEMENT_ESIGN store-timeline row; this
 * table captures the document + audit trail (who uploaded / verified, when).
 */
@Entity
@Table(name = "user.agreement_esign")
public class AgreementEsign {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private int id;
    @Column(name = "onboarding_id")
    private int onboardingId;
    @Column(name = "attachment")
    private int attachment;
    @Column(name = "status")
    private String status;
    @Column(name = "uploaded_by")
    private String uploadedBy;
    @Column(name = "upload_timestamp")
    private LocalDateTime uploadTimestamp;
    @Column(name = "verified_by")
    private String verifiedBy;
    @Column(name = "verified_at")
    private LocalDateTime verifiedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOnboardingId() {
        return onboardingId;
    }

    public void setOnboardingId(int onboardingId) {
        this.onboardingId = onboardingId;
    }

    public int getAttachment() {
        return attachment;
    }

    public void setAttachment(int attachment) {
        this.attachment = attachment;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUploadedBy() {
        return uploadedBy;
    }

    public void setUploadedBy(String uploadedBy) {
        this.uploadedBy = uploadedBy;
    }

    public LocalDateTime getUploadTimestamp() {
        return uploadTimestamp;
    }

    public void setUploadTimestamp(LocalDateTime uploadTimestamp) {
        this.uploadTimestamp = uploadTimestamp;
    }

    public String getVerifiedBy() {
        return verifiedBy;
    }

    public void setVerifiedBy(String verifiedBy) {
        this.verifiedBy = verifiedBy;
    }

    public LocalDateTime getVerifiedAt() {
        return verifiedAt;
    }

    public void setVerifiedAt(LocalDateTime verifiedAt) {
        this.verifiedAt = verifiedAt;
    }

    @Override
    public String toString() {
        return "AgreementEsign{" +
                "id=" + id +
                ", onboardingId=" + onboardingId +
                ", attachment=" + attachment +
                ", status='" + status + '\'' +
                ", uploadedBy='" + uploadedBy + '\'' +
                ", uploadTimestamp=" + uploadTimestamp +
                ", verifiedBy='" + verifiedBy + '\'' +
                ", verifiedAt=" + verifiedAt +
                '}';
    }
}